Setup Kali Full in Docker
docker build . -t <tag name>
docker run -d --net=host -v /root/box:/root/box --name box box:latest
After docker build complete, now you need to login to the container using ssh
ssh [email protected] -p <port ssh>
Port ssh is the port that you specified in Dockerfile, and the creds is "root:root".
Install "kali-linux-headless".
apt-get install kali-linux-headless -y
You need to change the password of root by using below command.
passwd
Because the docker is using network host (--net=host) on run, you need to becarefull because if you open or listen port on your docker it will open the port on host network!.