Last active
November 11, 2021 15:34
-
-
Save naliferopoulos/e6442f1b3d6c7c0a6aed4e20609a743d to your computer and use it in GitHub Desktop.
Kali Linux Persistent Docker Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# If this the first time this is run, please run the following command manually: | |
# docker run --name kali -u 0 --mount type=bind,source=$PWD,target=/host -it kalilinux/kali /bin/bash | |
docker rm kali 1>/dev/null 2>/dev/null | |
docker run --name kali -u 0 --mount type=bind,source=$PWD,target=/host -it infidel/kali /bin/bash | |
echo "Committing changes..." | |
docker commit kali infidel/kali:latest 1>/dev/null | |
docker stop kali 1>/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment