Skip to content

How to install Docker + docker-compose + Portainer

Installing Docker

On our site you can order a virtual server with the installed Docker и Portainer.

Install the necessary packages

sudo apt update
sudo apt install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

Add GPG Docker key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Adding a stable Docker repository

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Upgrade packages and install Docker

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io

Installing Portainer

You can optionally install Portainer for convenient container management. Once installed, the Portainer web interface will be available at https://ip:9443

docker run -d -p 8000:8000 -p 9443:9443 --name portainer \
    --restart=always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer_data:/data \
    portainer/portainer-ce:latest

Installing docker-compose

apt  install docker-compose