We are aware of a potentially service impacting issue. Learn more

How to Install Docker on Ubuntu 16.x Print

  • docker, ubuntu
  • 385

Here is a short tutorial for installing Docker in your Ubuntu 16 based VPS or Dedicated Server, these steps should work fine on KVM based VPS as well as Dedicated Servers, but if you have a OpenVZ Based VPS then please first submit a support ticket so that we can enable support for your VPS, once it's enabled then you can use following tutorial to install docker.

 

# apt install curl

# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -

 

# apt-get install software-properties-common

# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

# apt-get update

# apt-get install -y docker-ce

# systemctl status docker

 

Output of above command should be something like this:

 

root@www:~# systemctl status docker

● docker.service - Docker Application Container Engine

   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)

   Active: active (running) since Wed 2018-10-31 11:13:21 GMT; 2min 32s ago

     Docs: https://docs.docker.com

 Main PID: 4369 (dockerd)

   CGroup: /system.slice/docker.service

           ─4369 /usr/bin/dockerd -H fd://

           └─4390 docker-containerd --config /var/run/docker/containerd/containerd.toml

 

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.069836393Z" level=info msg="ClientConn switching balanc

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.070122614Z" level=info msg="pickfirstBalancer: HandleSu

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.070992254Z" level=info msg="pickfirstBalancer: HandleSu

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.071331650Z" level=info msg="Loading containers: start."

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.348558213Z" level=info msg="Default bridge (docker0) is

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.431142593Z" level=info msg="Loading containers: done."

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.501083314Z" level=info msg="Docker daemon" commit=e68fc

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.502042440Z" level=info msg="Daemon has completed initia

Oct 31 11:13:21 www.gaozhen.xyz systemd[1]: Started Docker Application Container Engine.

Oct 31 11:13:21 www.gaozhen.xyz dockerd[4369]: time="2018-10-31T11:13:21.529252706Z" level=info msg="API listen on /var/run/dock

lines 1-19/19 (END)

 

 

Docker is now installed in your Ubuntu 16 VPS or Dedicated Server


Was this answer helpful?

« Back