How to install and Configure Docker on Ubuntu 12.04 LTS

docker-io-logoDocker is an open source project that automates the deployment of applications inside software containers. Docker is a tool that can package an application and its dependencies in a virtual container that can run on any Linux server. This helps enable flexibility and portability on where the application can run, whether on premise, public cloud, private cloud, bare metal, etc. Docker extends a common container format called Linux Containers, or LXC, with a high level API providing a lightweight virtualization solution that runs processes in isolation. Docker utilizes LXC, cgroups, and the Linux kernel itself. Unlike traditional virtual machines, a Docker container does not include a separate operating system, instead it relies on the operating system.s functionality provided by the underlying infrastructure.

Install the backported kernel

Now reboot

Add the PPA sources to your apt sources list.

Update your sources

Install, you will see another warning that the package cannot be authenticated. Confirm install.

Verify it worked

Check which Docker versions are running

Use the commandline to search for an image called tutorial

Output should look like this

Please download the tutorial image you have just found

Make our freshly loaded container image output “hello world”

Install ‘ping’ on top of the learn/tutorial image.

Now find the ID of the container

Now save the container by naming it learn/ping

Run the ping program to ping www.google.com

Using docker ps we can see a list of all running containers, and using docker inspect we can see all sorts of usefull information about this container.

Find which images are currently on your host

Finally push your newly created docker image to registry

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

4 thoughts on “How to install and Configure Docker on Ubuntu 12.04 LTS

Leave a Reply