Skip to content

Instantly share code, notes, and snippets.

@naliferopoulos
Last active November 11, 2021 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naliferopoulos/e6442f1b3d6c7c0a6aed4e20609a743d to your computer and use it in GitHub Desktop.
Save naliferopoulos/e6442f1b3d6c7c0a6aed4e20609a743d to your computer and use it in GitHub Desktop.
Kali Linux Persistent Docker Image
#!/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