Skip to content

Instantly share code, notes, and snippets.

@chmodx
Last active September 12, 2023 08:51
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save chmodx/0260f25e368a3e67ef81 to your computer and use it in GitHub Desktop.
Save chmodx/0260f25e368a3e67ef81 to your computer and use it in GitHub Desktop.
Using GUI's with Docker
docker pull kalilinux/kali-linux-docker
# Available metapackages for Kali Linux (apt-get update && apt-cache search kali-linux)
# To see the list of tools included in a metapackage (apt-cache show kali-linux-web |grep Depends)
xhost +local:`docker inspect --format='{{ .Config.Hostname }}' $containerId`
docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/bauta/Downloads:/bt kalilinux maltego
@sonofagl1tch
Copy link

hello, b4ut4. I was googling for how best to run kali docker images with a GUI and found your GIST. Can I ask you to add a few more comments to break down your commands, please? I really want to give it a shot but I also want to understand which of the command variables are already set vs which ones I will need to set. thank you in advance!

@adspon
Copy link

adspon commented May 27, 2020

"Please note, kalilinux/kali-linux-docker is the former official image, it’s no longer updated. Don’t use it."
Link: https://www.kali.org/docs/containers/official-kalilinux-docker-images/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment