How to Run Kali Linux 2.0 In Docker Container

Docker Featured


Kali Linux is a well known operating system for security testers and ethical hackers. It comes bundled with a large list of security related applications and make it easy to perform penetration testing. Recently, Kali Linux 2.0 is out and it is being considered as one of the most important release for this operating system. On the other hand, Docker technology is getting massive popularity due to its scalability and ease of use. Dockers make it super easy to ship your software applications to your users. Breaking news is that you can now run Kali Linux via Dockers; letā€™s see how Ā šŸ™‚

Running Kali Linux 2.0 In Docker

Related Notes

If you donā€™t have docker installed on your system, you can do it by using the following commands:

For Ubuntu/Linux Mint/Debian:

 sudo apt-get install dockerĀ 

For Fedora/RHEL/CentOS:

 sudo yum install dockerĀ 

For Fedora 22:

 dnf install dockerĀ 

You can start docker service by running:

 sudo docker startĀ 

First of all make sure that docker service is running fine by using the following command:

 sudo docker statusĀ 

Kali Linux docker image has been uploaded online by Kali Linux development team, simply run following command to download this image to your system.

 docker pull kalilinux/kali-linux-dockerĀ 

Pull Kali Linux docker

Once download is complete, run following command to find out the Image ID for your downloaded Kali Linux docker image file.

 docker imagesĀ 

Kali Linux Image ID

Now run following command to start your kali Linux docker container from image file (Here replace Image ID with correct one).

 docker run -i -t 198cd6df71ab3Ā /bin/bashĀ 

It will immediately start the container and will log you into the operating system, you can start working on Kali Linux here.

Kali Linux Login

You can verify that container is started/running fine, by using the following command:

 docker psĀ 

Docker Kali


Dockers are the smartest way to deploy and distribute your packages. Kali Linux docker image is pretty handy, does not consume any high amount of space on the disk and it is pretty easy to test this wonderful distro on any docker installed operating system now.