Running kali linux on any linux distro using docker
Installing docker
You can follow this link to install docker on your machine
Install kali in docker
Run this command to pull kali images
1
docker pull kalilinux/kali-linux-docker
Run this command
1
docker run -Pti --privileged -e DISPLAY=:1.0 --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/vuquangtam/Docker/Share:/share --net=host --name kali kalilinux/kali-linux-docker
to create a new container. It will return a shell to interact with. By default, there are no tools added to this image, so we must install additional toolpack, you can follow this link to choose your suitable one.
After create container. you can check containter id by run this command
1
docker ps -a
To start a container, run
1
docker start [container's id]
Adding GUI
You can install any desktop environment that kali support. In my case, i’ll install XFCE because it’s lightweight. Run this command to install XFCE in your docker container