Installing and configuring Docker on Ubuntu Server

Pre-reqs:

  • Ubuntu Version 12.04 or greater
  • Kernel release 3.10 of higher

Instructions:

Run the following

  • sudo apt-get update
  • sudo apt-get install apt-transport-https ca-certificates
  • sudo apt-key adv –keyserver hkp://p80.pool.sks-keyservers.net:80recvkeys 58118E89F3A912897C070ADBF76221572C52609D

Check  to see if the following file exists: /etc/apt/sources.list.d/docker.list

screen-shot-2016-09-23-at-15-50-18

Lets create that file: sudo touch docker.list

Edit the file: sudo nano docker.list

Enter the following line (Note this is for Ubuntu 16):

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

screen-shot-2016-09-23-at-15-54-20

Save a close the file down

Update package list: sudo apt-get update

Docker recommend installing recommended packages:

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

Now to install Docker: sudo apt-get install docker-engine

Start the Docker Daemon: sudo service docker start

Verify Docker installed: sudo docker run hello-world

screen-shot-2016-09-29-at-16-30-37

Link to Official Docker installation guide

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s