Kali Linux in Docker
Vložit
- čas přidán 12. 06. 2024
- We'll run Kali inux ( or any other Linux distribution) with a graphical user environment such as xfce or KDE or mate inside a Docker Container! I'll explain briefly Docker images, Docker containers and Dockerfiles. I provide you with a Dockerfile on my github server that allows you to chose the X11 desktop environment, the remote access client to use (VNC, RDP, x2go), the Kali software packages to install and which network to use (bridged, host). #kalilinux #docker
MANY THANKS TO ALL MY PATRONS on / onemarcfifty !!!
The Docker File can be found here: github.com/onemarcfifty/kali-...
The @OffSecTraining YT channel is here: / offensivesecuritytraining
My other Docker videos can be found here:
Bridge networks: • The Docker Bridge Netw...
Host+macvlan networks : • The Docker HOST and MA...
###############################
Chapters:
0:00 Setting the Scene
2:30 About Docker
4:40 Getting Docker
5:50 Installing Kali in Docker
6:54 Accessing Kali
7:56 Networking
9:40 Volumes
###############################
KALI LINUX (TM) is a trademark of Offensive Security. The original Kali Dragon is a Trademark of Offensive Security (www.kali.org) and is used with friendly permission of kali.org and Offensive Security
MANY THANKS TO ALL MY PATRONS on / onemarcfifty !!!
Please visit my channel page: / onemarcfifty
Want to talk to me? Join my Discord Server: / discord
Shopping on Amazon ? Please bookmark my affiliate link www.amazon.com/?tag=onemarcfi...
Marc on Patreon: / onemarcfifty
Marc's channel on youtube: / onemarcfifty
Marc on Twitter: / onemarcfifty
Marc on Facebook: / onemarcfifty
Marc on Reddit: / onemarcfifty
Chat with me on Discord: / discord
The docker logo from Wikimedia Commons By dotCloud, Inc. - File:Docker (container engine) logo.png, Apache License 2.0, commons.wikimedia.org/w/index...
The Thumbnail of this video is under the Apache 2.0 License: www.apache.org/licenses/LICEN... - Věda a technologie
Totally subscribed. Such a lot of excellent information with literally NO fluff.
Hi Danny, thanks for subscribing
just to thank you for this video series, looking forward to implement in my next project.
Awesome- glad you like it !
lol i googled for this exact thing like half an hour after you uploaded it. gold. subscribed. thank you
Perfect timing ;-)
Thank you very much Mr Mark for the simple awesome explanation, fantastic presentation , keep it up
Hi, thank you very much for your feedback ;-)
Thank you very much for this well explained but very concise video sir, cheers!
That build script you created is absolute mustard! THANK YOU!!!! Any chance of a video on bash scripting like this please?
Subscribed, and thank you so much
Thanks for subscribing, watching and for the feedback ;-)
Thank you so much for the script, this is exactly what I've been looking for.
One question: I don't know what to put when asked about host volume and docker volume. I've put /home/admin for host and / for container, which gave errors.
The image was already built so now I imagined I'll just use docker run on it?
Thank you for the clear explanation. I have a vps server running an arm64 ubuntu 22, is there any possibility to run an x86-64 linux docker image inside it?
Thank you so much for the nice video what I was looking for. However, getting error in docker log - No log line matching the ' ' filter and not able to start
Hi mark, thanks for the video, was really useful. could you also explain how to access usb interfaces inside this container?
Hi, it should be as easy as mapping the device as a volume in theory (using the -v parameter, e.g. on the /dev/usb...)
verry good and simple i used it on my windows vm with docker windows all i had to do was go into to directory open a terminal in it and typ docker run build .
Cool stuff - thanks for the feedback ;-)
ty sir im new to docker after ill switch to proxmox may be for now my needs are small very big danke for the skript
Hey, you're welcome. Glad you liked it ;-)
Hi. Well done and very informative video. Thank you so much.
I have a concern. I'm on kubuntu 20.04 and the DockerFile has been executed successfully. But I really don't know how to access the kali-linux desktop which is in the docker. Can you help me ?
Hi Mark, thank you so much for video. Docker container is running but I cannot open the GUI. Actually I couldn't understand how to open GUI. Do I need to download any application for this ? Could you explain how to open Kalilinux GUI?
I have a difference use case scenario here,I just need a light weight GUI xfce or any other made disposable with a docker container to run on docker for the vps server (Ubuntu) How do I achieve that?
I have raspberry pi setup as access point bridge mode, and after install docker, client will not get DHCP from router
does it possible to access Container GUI from the macOS ?
Freue mich schon auf kali unter proxmox .. wäre klasse wenn es dann ähnlich wie unter Virtual Box ist
Es ist ein bischen weniger detailliert- 21 Stunden noch ;-)
thank you
And thank you for watching ;-)
Thank you for your videos, interesting how to connect usb to container?
In theory you could just mount /dev/usb... or the like as a volume mount (-v) to the container.
hello , I am already have running kalilinux/kali-rolling inside docker desktop on windows 11 , the sudo ./build not exist , how can I resolve this issue
buen video
Hi Marc, the command line docker is not calling home and sniffing? because the windows docker with GUI is spying a lot
Hi, not that I had ever been aware of ;-)
@@OneMarcFifty thanks! I will give docker another try
Installled kali on docker successsfully but can't access the port form vnc viewer. On portainer under published ports, there is nothing there. Though in the logs its specidies the port but it dosn't work. Plz help
Hi Zaid, you might need to run a docker inspect on the container in order to see what it exposes or not and why. Maybe add some echo statements into the build script around line 90 to see what value the variables carry. Have you changed the build script in any way ?
and how to connect from rdp or vnc via host docker network? It`s writing this "Published ports are discarded when using host network mode"
Publishing a port effectively means doing a port forward (or rather DNAT) of that port from the host interface to the Docker bridge interface. If you use the host interface then you don't need DNAT because the port would listen directly on the host's interface and hence the port publishing is discarded. The container would still listen on that port though.
Marc... you have the 'gift' of explaining things in a coherent and objective way... :-)
could you please explain the relation between the lightspeed/time and gravity??? ;-))
( ¨\o/¨ )
It’s relative, i.e. it depends on your point of view. Also there is no escape from gravity - not for free ;-)
Random comment. Thumb deployed. 👍
Thanks a lot ;-)
These two files, do we need to save them as files and then run a command, or just copy and past the code and hit enter?
Hi John, please see the readme on the github repo: github.com/onemarcfifty/kali-linux-docker
@@OneMarcFifty I did but still not able to understand. Not really a Linux guy.
@@JohnMandersonBM No worries - what Linux are you using, i.e. what linux version is your docker host running on ?
@@OneMarcFifty Running Portainer on Ubuntu 22.04.
@@JohnMandersonBM OK cool - in this case - in a shell type the following commands(without the quotes). First you need to make sure you have git installed: "apt update" then "apt install git", next clone the repository with "git clone github.com/onemarcfifty/kali-linux-docker.git" . Once you have a clone then do "cd kali-linux-docker" followed by "sudo ./build"