DevOpsDockerDockersHow to

How to Install Docker on Ubuntu 16.10 Yakkety

The latest version available is Docker 1.12.3, released on October 26th, 2016 and bringing various improvements and bug fixes.

The first requirement of using Docker is that you must be using a 64 bits OS because Docker doesn’t support 32 bits. Additionally, your kernel must be 3.10+. Ubuntu 16.10 comes with Linux Kernel 4.8.

Install Docker on Ubuntu 16.10 from Ubuntu Repository

diaba@MS-Mongo:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety

We can install the Docker runtime by executing the following command in the terminal:

sudo apt install docker.io
diaba@MS-Mongo:~$ sudo apt install docker.io
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed

During the installation, a docker group and a Systemd service will be created.

Install Docker on Ubuntu 16.10 from Docker’s APT Repository:

Fire up a terminal window, then edit the filesources.list with your favourite text editor such as vi or nano.

sudo vi /etc/apt/sources.list

Scroll down to the bottom of this file and add the following line:

deb https://apt.dockerproject.org/repo ubuntu-xenial main

Save the file using ‘:, wq’ <ENTER> commands if you use “vi” or Press CTRL+O to save the file, then CTRL+X to exit.

Run the following command to import the Docker GPG key to Ubuntu 16.10 system so that APT can verify package integrity during installation.

sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

And because this repository uses HTTPS connection, which I recommend all software repositories should be using, we also need to install apt-transport-https and ca-certificates package.

sudo apt install apt-transport-https ca-certificates

:Finally, update the package index on your Ubuntu 16.10 system and install docker-engine:

sudo apt update 
sudo apt install docker-engine

Some Simple Commands You May Want to Run After Installing Docker

Once Docker is installed, the Docker daemon should be automatically started. You can check its status with the following commands:

systemctl status docker
systemctl status docker

If thr docker service is not running, then start the daemon with this command:

sudo systemctl start docker

And enable auto-start at boot time:

sudo systemctl enable docker

To Check Docker version:

sudo docker info

Terminal Output:

diaba@MS-Mongo:~$ sudo docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 17.05.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9048e5e50717ea4497b757314bad98ea3763c145
runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.8.0-22-generic
Operating System: Ubuntu 16.10
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 2.937GiB
Name: MS-Mongo
ID: UFC6:GEXI:BTZ4:K5DP:NDJJ:3FCC:ICFX:WLYP:XC3F:SXXP:EQPZ:7EU5
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

TF1C kFv XB

Please type the text above:

Check Also

Close
Close
Close