How to install docker on Debian, Ubuntu and Kali Linux and any Debian derivative .

Docker is what allows you to package an application with all of its dependencies into a standardized unit for software development.
Docker containers wrap up a piece of software in a complete filesystem that contains everything it needs to run: code, runtime, system tools, system libraries – anything you can install on a server. This guarantees that it will always run the same, regardless of the environment it is running in.
Following are key things to note about docker:

  1. Docker containers are based on open standards allowing containers to run on all major Linux distributions and Microsoft operating systems with support for every infrastructure.
  2. Docker gives developers the freedom to define environments, and create and deploy apps faster and easier, and flexibility for IT ops to quickly respond to change.
  3. Containers isolate applications from each other and the underlying infrastructure while providing an added layer of protection for the application.
  4. Each virtual machine includes the application, the necessary binaries and libraries and an entire guest operating system – all of which may be tens of GBs in size.
  5. Containers include the application and all of its dependencies, but share the kernel with other containers. They run as an isolated process in userspace on the host operating system. They’re also not tied to any specific infrastructure – Docker containers run on any computer, on any infrastructure and in any cloud.
  6. Docker gives you choice without complexity, from a laptop to a team, to private infrastructure and public cloud providers.

Among many more. Here are few steps to follow to get docker running on any debian derivative,
1) Download latest Docker binary from official site.

  wget http://get.docker.io/builds/Linux/x86_64/docker-latest -O /usr/bin/docker

2)Download init.d script

curl -o /etc/init.d/docker https://raw.githubusercontent.com/dotcloud/docker/master/contrib/init/sysvinit-debian/docker

3) Make the two files executable

chmod +x /usr/bin/docker /etc/init.d/docker

4) Add group docker to your system

addgroup docker

5) Make docker run on computer startup

update-rc.d -f docker defaults

6) Socket binding

cat << EOF > /etc/default/docker
DOCKER_OPTS="-H 127.0.0.1:4243 -H unix:///var/run/docker.sock"
EOF

7) Start docker and make sure that it is successfully installed.

service docker start

Run command below to see version of docker installed.

# docker version
# docker info

That’s all. Hope this was helpful.
Tags
How to get docker running on ubuntu
Latest doicker installation on debian and ubuntu
Install latest docker on kali linux
Docker definitive installation for debian derivatives
How to get started with docker on ubuntu and debian
Docker autostart

SHARE
Previous article
Next articleHow to install Asterisk PBX 13.x on CentOS 7 step by step guide
I'm a fan of Linux and open source enthusiast with bachelor's degree in Electrical and Communications Engineering.The Swiss Army Knife syndrome makes me an expert in the fields of Virtualization, Cloud Computing,VoIP,Linux Containers and Server Hardening. Currently i have the following certifications: 1. LPI 2. SUSE Certified Linux Administrator ( CLA) 3. SUSE Certified Linux Professional ( CLP) 4. CCNA And working on RHCSA, RHCE, RHCVA, and Openstack Cloud Certification. I have a strong desire to learn, develop, and share knowledge with others.
  • Richard freel

    content not found,are you sure the url is correct?