Https://linux.cn/article-6103-1.html
Kali Linux is a well-known operating system for security testers and white hat. It comes with a lot of security-related programs, which makes it easy for penetration testing. Recently, Kali Linux 2.0 was released, and it was considered to be the most important release of the operating system. On the other hand, Docker technology has become popular due to its extensibility and ease of use. Dokcer makes it very easy for you to bring your program to your users. The good news is that you can run Kali Linux through Docker, so let's see what we have to do:)
Running Kali Linux 2.0 in Docker
Related Tips
If you haven't installed Docker in your system yet, you can run the following command:
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 run the following command to start Docker:
sudo docker start
Run the following command first to ensure that the Docker service is working properly:
sudo docker status
The Kali Linux development team has uploaded the Kali linux docker image and only needs to enter the following command to download the image.
docker pull kalilinux/kali-linux-docker
Pull Kali Linux Docker
Once the download is complete, run the following command to find out the ID of the Docker image you downloaded.
docker images
Kali Linux Image ID
Now run the following command to launch the Kali Linux Docker container from the image file (this needs to be replaced with the correct mirror ID).
docker run -i -t 198cd6df71ab3 /bin/bash
It will start the container immediately and let you log into the operating system, and you can now work in Kaili Linux.
Kali Linux Login
You can verify that the container is up/running by using the following command outside the container:
docker ps
Docker Kali
Summarize
Docker is one of the smartest ways to deploy and distribute packages. The Kali Linux Docker image is easy to use and does not consume a lot of hard disk space, so it's easy to test this great release on any Docker-installed operating system.
via:http://linuxpitstop.com/run-kali-linux-2-0-in-docker-container/
How to run Kali Linux 2.0 in a Docker container