How to install docker engine on ubuntu ?


How to install docker engine on ubuntu ?

To check your current kernel version, open a terminal and use uname -r to display your kernel version:

$ uname -r 

Install the recommended package.

$ sudo apt-get install linux-image-extra-$(uname -r)

Update your APT package index.

$ sudo apt-get update

Install Docker.

$ sudo apt-get install docker-engine

Start the docker daemon.

$ sudo service docker start

Verify docker is installed correctly.

$ sudo docker run hello-world

For 15.04 and up, to configure the docker daemon to start on boot, run

$ sudo systemctl enable docker

Post a comment