Docker and docker-compose installation

1 min read

A couple of commands for installing docker base on a VPS.


The following command will install the latest stable docker on your server.

apt update apt install -y apt-transport-https ca-certificates curl software-properties-common curl -fsSL | sudo apt-key add - add-apt-repository \ "deb [arch=amd64] \ $(lsb_release -cs) \ stable" apt update apt install -y docker-ce


Find current stable version: and replace VERSION word in the following command.

VERSION=1.26.2 curl -L$VERSION/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose