Docker can be installed on Ubuntu Cloud Server to manage containers. Docker is a free software that automates the deployment of applications. Previously we have talked about Automation in the Cloud, Relationship of Cloud Automation and Abstraction etcetera theoretical parts. In this article, first we will explain about Docker and then provide the commands to manually install Docker on Ubuntu on Cloud Server.
Learn About Docker Before Installing on Ubuntu on Cloud Server
Docker is a tool that can package an application and its dependencies in a virtual container, which can be run on any Linux server. This extends the flexibility and portability of an application is running, either on the local machine, a private or public cloud, a bare metal etc.
Docker extends container format standard Linux LXC with an API providing a high-level virtualization solution running isolated processes. Docker uses LXC, cgroups and the Linux kernel itself. Unlike traditional virtual machines, a Docker container does not include the operating system, instead it relies on the features provided by the underlying infrastructure operating system.
Docker container can be used to expand the distribution system so that they run independently from one physical machine or one instance per node; which allows nodes to be deployed as and when resources are available, offering a transparent and deployment similar to Paas systems like Apache Cassandra, Riak and other distributed systems.
Docker can be integrated into various infrastructure tools :
- OpenStack Nova
Official website and repository :
Docker on Ubuntu on Cloud Server to Manage Containers
We can directly install docker on Ubuntu 14.04 :
apt-get update && apt-get install docker.io
We will symlink for easy to use and update to latest version of Docker :
ln -sf /usr/bin/docker.io /usr/local/bin/docker && sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
# curl the bash script
curl -s https://get.docker.io/ubuntu/ | sudo sh
# add user, change with user-name
user mod -a -G docker user-name
Exit from the SSH session and freshly start a SSH session after logging out :
service docker.io stop
after login via SSH, edit the Docker configuration file :
# add this
# restart docker
service docker.io restart
Manage Containers with Docker on Ubuntu
Container Management with Docker is a big topic, we are just providing a basic idea :
docker pull ubuntu
# login to bash shell
docker run -i -t ubuntu /bin/bash
Actually on Rackspace we have read to use Rackspace Deployment – we do not need to do the steps of installation manually. Right now, the steps are for learning purpose only.Tagged With Add image from docker io/ubuntu:latest