Ubuntu Tutorial – Today, we will learn how to install Docker on Ubuntu 16.04 Xenial Xerus. When this post is written, Docker 17.05 is available for download. Docker is a modern technology to run application inside a container. On this tutorial, I will show you how to setup docker repository for Ubuntu and then install Docker on Ubuntu. For more information about Docker, please visit docker.com.
Steps to install Docker on Ubuntu 16.04
Step 1. Install required packages
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
Step 2. Add GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Step 3. Add the repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Step 4. Update system and install Docker
sudo apt-get update sudo apt-get install docker-ce
Step 5. Check Docker status and version
dhani@dhani-ThinkPad-T450:~$ sudo systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e Active: active (running) since Rab 2017-05-10 22:20:27 WIB; 17s ago Docs: https://docs.docker.com Main PID: 20342 (dockerd) CGroup: /system.slice/docker.service ├─20342 /usr/bin/dockerd -H fd:// └─20349 docker-containerd -l unix:///var/run/docker/libcontainerd/doc Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.46 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.46 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.46 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.46 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.67 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.76 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.81 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.81 Mei 10 22:20:27 dhani-ThinkPad-T450 dockerd[20342]: time="2017-05-10T22:20:27.82 Mei 10 22:20:27 dhani-ThinkPad-T450 systemd[1]: Started Docker Application Conta lines 1-19/19 (END)
Check Docker version
dhani@dhani-ThinkPad-T450:~$ docker -v Docker version 17.03.1-ce, build c6d412e
At this point we’ve successfully installed Docker Community Edition on Ubuntu 16.04. We will learn more about Docker, please subscribe to this blog.
Leave a Reply