How to Install Docker on Ubuntu 14.04 LTS

Jose Velazquez
by Atlantic.Net (71posts) under Cloud Hosting
0 Comments
Verified and Tested 05/19/15

Introduction

This how-to will help you with your Docker setup on Ubuntu 14.04 LTS so that you can successfully build, ship, and run distributed applications quickly and effective via its own Docker Engine. With technology on the rise and the popularity of Apps quickly rising, Docker is preferred by many system admins and developers to maximize their creativity in an App production environment.

What Do You Need?

You need a Ubuntu 14.04 LTS server that is configured with a static IP address. If you do not have a server already, you can visit our Cloud Hosting page and spin a new server up in under 30 seconds.

Server Preparation

To get started, login to your Ubuntu 14.04 LTS server via SSH or the VNC Console located here. Atlantic.Net Cloud servers are setup as minimal installations in order to avoid having unnecessary packages from being installed and never used. If some software packages that you’re used to using aren’t installed by default, feel free to install them as needed.

Let’s make sure that your server is fully up-to-date.

apt-get update -y ; apt-get upgrade -y

With the server up-to-date, we can continue the installation process on your server.

Install Docker on Ubuntu 14.04 LTS

We will begin by installing with the following:

sudo apt-get install docker.io

We must then make a symbolic link between the original location of the Docker installation, so the program knows where to look for it.

sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io

Furthermore, If you would like to install the latest version on your system, we will need to install additional dependencies in the following order to ensure everything checks out.

sudo apt-get install apt-transport-https
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker
sudo apt-get install apparmor

Finally, you can verify that the latest version of docker is installed with the following:

sudo docker version

Once done, you can create your first container and test the installation:

sudo docker run -i -t ubuntu /bin/bash

What Next?

Congratulations! You now have a server with a Docker platform for your app developing environment. Thank you for following along this how-to! Check back with us for further updates, and reliable cloud server from Atlantic.Net.


Related Posts


New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

Resources

We use cookies for advertising, social media and analytics purposes. Read about how we use cookies in our updated Privacy Policy. If you continue to use this site, you consent to our use of cookies and our Privacy Policy.