Creating Kali Docker Image with all Tools
1 - Creating a Container from Basic Kali Image and Configure it 
Creating a container from an image (kalilinux/kali-rolling) & give it a name (testKali) & hostname (test.kali) & starting the bash (/bin/bash)
docker run -it -h test.kali --name testKali kalilinux/kali-rolling bash- Other kali image can be found here : 
- Details about each image can be found here : 
Official Kali Linux Docker Images | Kali Linux Documentation
After getting into the bash, install all kali tools (~20GB)
apt update
apt install kali-linux-everything- Other kali packages can be found here : 
Major Metapackage Makeover | Kali Linux Blog
Kali Linux Metapackages | Kali Linux Blog
- NOTES : - some packages might be deprecated, for example " - kali-linux-all" was depreciated, instead use- kali-linux-everything- Reference : 
 
- To check the list of tools within each package see this 
 
After this step, we have a container with all the required tools. In the next step we will create an image from that container, so we can use that image whenever we want to create a fresh container for kali with all tools
2 - Creating Docker Image from a Container :
After creating the container and configure it , we will create an image from that container
first we should stop the container
docker stop testKalithen save the container to an image
docker commit testKalilist images to get image id (to pass it to save command )
docker image lsthen save the image to a .tar file
docker image save 36a9fc753a9f --output KaliFullImage.tarNow the kali docker image with all tools are ready to be used. We can import that image into another machine (where Docker is installed) and create container from it.
Last updated
Was this helpful?