Docker Explore Part 1 – Installation


Docker is available on multiple platform, which contains Desktop, Servers and Public Cloud Provider such as AWS and Azure. You can install it from any of the platform.

This demo is the installation guide for Community Edition (CE) on Ubuntu. The instance I’m going to use is a AWS EC2 Ubuntu instance. Also notice that you can directly install from AWS CloudFormation.

This is the link for it.
https://store.docker.com/editions/community/docker-ce-aws

Run the following command to get the docker installed.

ubuntu@ip-172-31-11-57:~$ uname -r
4.4.0-1013-aws
ubuntu@ip-172-31-11-57:~$ sudo su
root@ip-172-31-11-57:/home/ubuntu# apt-get update
root@ip-172-31-11-57:/home/ubuntu# apt-get install -y docker.io
root@ip-172-31-11-57:/home/ubuntu# docker version
Client:
Version: 1.12.6
API version: 1.24
Go version: go1.6.2
Git commit: 78d1802
Built: Tue Jan 31 23:35:14 2017
OS/Arch: linux/amd64

Server:
Version: 1.12.6
API version: 1.24
Go version: go1.6.2
Git commit: 78d1802
Built: Tue Jan 31 23:35:14 2017
OS/Arch: linux/amd64

When you run the ‘docker version’ command after the docker has been installed. And you’re getting the following error:

Cannot connect to Docker daemon. Is the docker daemon running on this host

Simply start the docker service, and you are ready to go.

 

root@ip-172-31-11-57:service docker start