Skip to content

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)

  1. Stopping automatic update services (unattended-upgrades, apt-daily).

  2. Updating the package list and upgrading all installed system components to their latest versions.

  3. Installing basic utilities: ca-certificates, curl, gnupg.

System Preparation (RHEL/CentOS/Rocky/AlmaLinux)

  1. Adding the Docker GPG key and configuring the official Docker repository.

  2. Installing runtime components: docker-ce, docker-ce-cli, containerd.io, docker-buildx-plugin, docker-compose-plugin and networking utilities (net-tools, bind-utils).

Installation of Docker and Environment

  1. Installing the Docker Engine runtime environment.

  2. Configuring the /etc/docker/daemon.json configuration file.

  3. Activating the Docker service and configuring it to start automatically on system boot.

  4. Installing Python management tools: python3-pip, python3-requests and libraries for interacting with Docker (python3-docker or docker).

Access Rights and Security

  • Docker Configuration: The /etc/docker/daemon.json file is set with root ownership and 0644 permissions.

  • 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 portainer or docker restart portainer.

  • Stop: docker stop portainer.

  • View Status: docker ps -a | grep portainer.

Available Connection Ports

Port Purpose Protocol
9000 Portainer Management Interface TCP
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×