How to install Docker on Ubuntu 17.04

This tutorial is going to show you how to install Docker on Ubuntu 17.04. Docker is a popular and modern virtualization software. For more information about Docker, please visit Docker Official Website. Docker is available in Ubuntu official repository (Docker.io) and actually its also available via Docker.com repository (docker-ce). But unfortunately, I was unable to install Docker Community Edition on my Ubuntu 17.04. I think the repository is not update to this current Zesty Zapus release yet.

Steps to install Docker on Ubuntu 17.04

Open Terminal and execute this command to install Docker

sudo apt update
sudo apt install docker.io

Example

dhani@dhani-VirtualBox:/etc/apt$ sudo apt install docker.io
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bridge-utils cgroupfs-mount containerd dns-root-data dnsmasq-base git
  git-man liberror-perl runc ubuntu-fan
Suggested packages:
  aufs-tools btrfs-tools debootstrap docker-doc rinse zfs-fuse | zfsutils
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  bridge-utils cgroupfs-mount containerd dns-root-data dnsmasq-base docker.io
  git git-man liberror-perl runc ubuntu-fan
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 20,0 MB of archives.
After this operation, 107 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

Once installed, Docker service will automatically started. You can check the status with the following command

dhani@dhani-VirtualBox:/etc/apt$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: 
   Active: active (running) since Wed 2017-06-07 14:36:02 WITA; 48s ago
     Docs: https://docs.docker.com
 Main PID: 18050 (dockerd)
   CGroup: /system.slice/docker.service
           ├─18050 /usr/bin/dockerd -H fd://
           └─18069 containerd -l unix:///var/run/docker/libcontainerd/docker-con

Jun 07 14:36:00 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:00.67903
Jun 07 14:36:00 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:00.67999
Jun 07 14:36:00 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:00.68527
Jun 07 14:36:00 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:00.89146
Jun 07 14:36:01 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:01.67528
Jun 07 14:36:02 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:02.07775
Jun 07 14:36:02 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:02.07830
Jun 07 14:36:02 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:02.07853
Jun 07 14:36:02 dhani-VirtualBox dockerd[18050]: time="2017-06-07T14:36:02.09197
Jun 07 14:36:02 dhani-VirtualBox systemd[1]: Started Docker Application Containe
lines 1-19/19 (END)

Thanks for reading this post on how to install Docker on Ubuntu 17.04. See you in the next tutorial. Cheers

Be the first to comment

Leave a Reply

Your email address will not be published.


*