Portainer Deployment Overview on Server¶
Prerequisites¶
To ensure the application functions correctly, the server must meet the following requirements:
-
Operating System: Ubuntu, Debian, or RHEL family distributions (CentOS, Rocky Linux, AlmaLinux).
-
Access Rights: Superuser (
root) privileges to install system packages and manage services. -
Network: Internet access to Docker repositories and package managers.
Docker Containers and Execution¶
The following container is installed and launched during the deployment process:
| Parameter | Value |
|---|---|
| Image Name | portainer/portainer-ce |
| Container Name | portainer |
| Ports | 9000:9000 |
| Volumes | /var/run/docker.sock:/var/run/docker.sock |
| Restart Policy | always |
The container uses the system Docker socket to manage other containers on the host.
Application Installation Process¶
The deployment process includes operating system preparation and installation of the Docker runtime environment.
System Preparation (Debian/Ubuntu)¶
-
Stopping automatic update services (
unattended-upgrades,apt-daily). -
Updating the package list and upgrading all installed system components to their latest versions.
-
Installing basic utilities:
ca-certificates,curl,gnupg.
System Preparation (RHEL/CentOS/Rocky/AlmaLinux)¶
-
Adding the Docker GPG key and configuring the official Docker repository.
-
Installing runtime components:
docker-ce,docker-ce-cli,containerd.io,docker-buildx-plugin,docker-compose-pluginand networking utilities (net-tools,bind-utils).
Installation of Docker and Environment¶
-
Installing the Docker Engine runtime environment.
-
Configuring the
/etc/docker/daemon.jsonconfiguration file. -
Activating the Docker service and configuring it to start automatically on system boot.
-
Installing Python management tools:
python3-pip,python3-requestsand libraries for interacting with Docker (python3-dockerordocker).
Access Rights and Security¶
-
Docker Configuration: The
/etc/docker/daemon.jsonfile is set withrootownership and0644permissions. -
Package Security: Digital signature verification of repositories is used during the installation of system components.
Starting and Stopping the Application¶
Portainer container state management is performed via Docker:
-
Start/Restart:
docker start portainerordocker restart portainer. -
Stop:
docker stop portainer. -
View Status:
docker ps -a | grep portainer.
Available Connection Ports¶
| Port | Purpose | Protocol |
|---|---|---|
9000 | Portainer Management Interface | TCP |