This is an old revision of the document!
Ever wondered you could run a docker container with Kali Linux in it, and still access your physical network devices, and be able to capture packets, and so on??
docker run -it --rm \ --mount type=bind,source=`pwd`/root,destination=/root \ --mount type=bind,source=`pwd`/etc,destination=/etc \ --mount type=bind,source=`pwd`/usr,destination=/usr \ --mount type=bind,source=`pwd`/var,destination=/var \ --privileged --network=host --dns=127.0.0.1 --name kali kalilinux/kali-rolling bash 2>/dev/null
A self-destructive docker container mounting different paths from an already configured kali-linux filesystem (mounting this paths could be ommited)
–privileged is needed to capture packets, use special devices, etc
–network=host speaks by itself
–dns=127.0.0.1 (totally optional)