Installing Docker on your VPS

To use Docker you will need to use a KVM based VPS to run a newer (3.xx or 4.xx) kernel which docker requires

Installing on Debian

Install packages to allow apt to use a repository over HTTPS,

apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

Add Docker's official GPG key,

curl -fsSL | sudo apt-key add -

Add the Docker Stable repository,

add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

Update the apt package index,

apt-get update

Install the latest version of Docker,

apt-get install docker-ce

Installing on CentOS

Install the EPEL Package Repository and update your system,

yum install epel-release
yum update

Next, we install the docker package,

yum install docker-io

Once the install finishes, start the docker service,

service docker start

You can configure Docker to automatically start on-boot/reboot as well, using chkconfig,

chkconfig docker on

Last Modified: January 02 2018 18:28:05