Kali Linux in Docker

Sdílet
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

Komentáře • 53

  • @dannyaustin84
    @dannyaustin84 Před rokem +3

    Totally subscribed. Such a lot of excellent information with literally NO fluff.

  • @olafgusten2671
    @olafgusten2671 Před rokem +2

    just to thank you for this video series, looking forward to implement in my next project.

  • @Alternosphere
    @Alternosphere Před rokem +2

    lol i googled for this exact thing like half an hour after you uploaded it. gold. subscribed. thank you

  • @taherboujrida8110
    @taherboujrida8110 Před rokem +4

    Thank you very much Mr Mark for the simple awesome explanation, fantastic presentation , keep it up

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Hi, thank you very much for your feedback ;-)

  • @TheEmperorXavier
    @TheEmperorXavier Před 2 měsíci

    Thank you very much for this well explained but very concise video sir, cheers!

  • @charlesdehavilland2437
    @charlesdehavilland2437 Před 5 měsíci

    That build script you created is absolute mustard! THANK YOU!!!! Any chance of a video on bash scripting like this please?

  • @ProgrammingWithOsku
    @ProgrammingWithOsku Před rokem +1

    Subscribed, and thank you so much

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Thanks for subscribing, watching and for the feedback ;-)

  • @elfinofficial4071
    @elfinofficial4071 Před 25 dny

    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?

  • @bourehimyoussef111
    @bourehimyoussef111 Před 7 měsíci

    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?

  • @skkar2k2
    @skkar2k2 Před 10 měsíci

    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

  • @kailashj2145
    @kailashj2145 Před rokem +1

    Hi mark, thanks for the video, was really useful. could you also explain how to access usb interfaces inside this container?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      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...)

  • @killerdude909
    @killerdude909 Před rokem +1

    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 .

  • @BK-lv9ff
    @BK-lv9ff Před rokem +1

    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

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hey, you're welcome. Glad you liked it ;-)

  • @kanmaber
    @kanmaber Před 11 měsíci

    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 ?

  • @gizemduygusonmez8005
    @gizemduygusonmez8005 Před 8 měsíci

    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?

  • @Mr_ravee_
    @Mr_ravee_ Před 4 měsíci

    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?

  • @guocity
    @guocity Před 10 měsíci

    I have raspberry pi setup as access point bridge mode, and after install docker, client will not get DHCP from router

  • @eid0sman
    @eid0sman Před 4 měsíci

    does it possible to access Container GUI from the macOS ?

  • @dokomann
    @dokomann Před rokem +1

    Freue mich schon auf kali unter proxmox .. wäre klasse wenn es dann ähnlich wie unter Virtual Box ist

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Es ist ein bischen weniger detailliert- 21 Stunden noch ;-)

  • @ReemRamzi
    @ReemRamzi Před rokem +1

    thank you

  • @ShadowStormlq5mwdasd
    @ShadowStormlq5mwdasd Před rokem +1

    Thank you for your videos, interesting how to connect usb to container?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      In theory you could just mount /dev/usb... or the like as a volume mount (-v) to the container.

  • @afifnassar450
    @afifnassar450 Před 9 měsíci

    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

  • @magicsyssolucionesentecnol733

    buen video

  • @mambo7668
    @mambo7668 Před rokem +1

    Hi Marc, the command line docker is not calling home and sniffing? because the windows docker with GUI is spying a lot

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Hi, not that I had ever been aware of ;-)

    • @mambo7668
      @mambo7668 Před rokem

      @@OneMarcFifty thanks! I will give docker another try

  • @zaidmunir8409
    @zaidmunir8409 Před rokem +1

    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

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      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 ?

  • @ShadowStormlq5mwdasd
    @ShadowStormlq5mwdasd Před rokem +1

    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"

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      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.

  • @IBITZEE
    @IBITZEE Před rokem +1

    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/¨ )

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      It’s relative, i.e. it depends on your point of view. Also there is no escape from gravity - not for free ;-)

  • @sarkybugger5009
    @sarkybugger5009 Před rokem +2

    Random comment. Thumb deployed. 👍

  • @JohnMandersonBM
    @JohnMandersonBM Před rokem +1

    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?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hi John, please see the readme on the github repo: github.com/onemarcfifty/kali-linux-docker

    • @JohnMandersonBM
      @JohnMandersonBM Před rokem

      @@OneMarcFifty I did but still not able to understand. Not really a Linux guy.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      @@JohnMandersonBM No worries - what Linux are you using, i.e. what linux version is your docker host running on ?

    • @JohnMandersonBM
      @JohnMandersonBM Před rokem

      @@OneMarcFifty Running Portainer on Ubuntu 22.04.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      @@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"