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
)
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)
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 usekali-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
then save the container to an image
list images to get image id (to pass it to save
command )
then save the image to a .tar
file
Now 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?