Verified and Tested 05/19/15
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.
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
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.