Installing Docker in Kali Linux




What is Docker?

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
  • Docker allows you to build and deploy applications and services in the form of containers.
  • It is a platform as a service offering that utilizes the host OS  Kernel as opposed to a traditional VM, where OS’s have to be installed for every virtual machine.
  • The containers contain the dependencies and libraries that application or service needs to run, therefore eliminating the need for installing dependencies manually.
  • Docker containers are much more efficient than VM’s as they utilize the host OS.

Why Docker?



Docker as a platform as a service offers utilization of the host operating system kernel when compare to  traditional VMs where you have to  install the guest operating system on top of the host operating system for each virtual machine. Another advantage is   containers contain the dependencies and the libraries that an application or a service needs to run therefore eliminating the need for installing the dependencies manually so what this means is that if you're a developer of a tool or an environment or operating system or a web application you can essentially use docker to create docker images that can be then turned into docker containers what happening here is you're setting up this service for application in the form of an image that can then be run as a container on a platform.


Install Docker 

Step 1: Import Docker GPG key:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -


Step 2: Add the Docker repository to Kali Linux


echo "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" | sudo tee  /etc/apt/sources.list.d/docker.list


Step 3: Install Docker on Kali Linux
$ sudo apt update
gn:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:3 https://download.docker.com/linux/debian buster InRelease [44.4 kB]                          
Hit:2 http://kali.download/kali kali-rolling InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:5 https://download.docker.com/linux/debian buster/stable amd64 Packages [10.9 kB]
Fetched 55.3 kB in 1s (45.2 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done

After installation, Docker service will be started, but not enabled (i.e. it will not be started automatically after reboot). To start it:

systemctl start docker


To start Docker automatically upon reboot :
systemctl enable docker



Comments

Popular Posts