Please note, that this does not allow for systemd functionality, which would allow access to items such as systemctl. There are ways to get systemd to work with Docker, however they include modifying the Dockerfile and docker run flags. At this time this will not be covered.
Admittedly I'm confused by a few things... namely that I was under the impression that NodeJS was already installed on Kali Linux (I have a VirtualBox VM using Debian 64-bit where it exists). I went as far as trying to install the kali-linux-all metapackage, but NodeJS/npm don't seem to exist.
When you run docker for the first time, if you do not have Hyper-V enabled it will ask you to turn it on. For those that are also running VMWare Workstation or VirtualBox this will mean that these Virtual Machine applications will not run. This is one downside to running Docker, however, you can turn Hyper-V off, reboot and then run your Virtual Machine software as normal (when you go to run Docker again, it will again prompt you to turn back on Hyper-V).
The kali instance you download has no tools installed at all. This allows you to full customise the Kali instance to contain as many tools as you want/need. The first thing to do, is to update the repositories, upgrade whats there and remove what we dont need:
Using tools such as netcat and metasploit where I have listeners set up and waiting to catch a shell, I need to enable that port via my docker image. Therfore, if I know I am going to be using a port in my docker instance I need to enable it when I run docker. i.e.
This maps port 4444 in my docker instance to the port 4444 on my host machine. So, when I set up my reverse listener on a target I want to direct it to the IP address of my host machine, not the IP address of my docker instance.
I was thinking of setting up a machine to explore when a co-worker mentioned building a Docker Container with Kali Linux inside it. With some quick searching I found that they already had Kali Linux dockerized ... I settled on the "ROLLING" version.
I installed embyserver using docker-compose (file attached) and the problem is that it doesn't scan the library... in the beginning, I thought it was a problem with the user permissions but even after adjusting that the result was the same.
I tried to edit config file at /var/lib/docker/containers/facb9b640837c5d5165d4b883729ab76f8b0c554d59b71a133765cad940bdf01/config.v2.json but with no success, the container starts with no user defined.
Just to let you know I am trying to create kali inage using instructions in this blog. My host machine is windows 7 enterprise, My guest is centos 7 running in wmware workstation 12. I changed apt-get to yum.
Thanks for taking time, first thing: you need to have a host machine running linux be it any. And then you run docker on the host machine. Then the docker image we are creating is debian based so you have to keep it apt-get.
I think this helps.
hi
i have a problem with the dockerfile when i type cat dockerfile i got this message
cat: Dockerfile: No such file or directory
i created it but this message appear what can i do ? thanks in advance
macOS does not again support containers natively, the docker environment you get on the macOS is again run in a virtual machine running very minimalistic linux OS that can run docker. So again for this to work you need to have a any linux as natively installed operating system.
I am not sure how to access the Docker VM from outside. If you really wanna use docker just create a VM based on any modern Linux distro and install docker in it. Then you can give access of your USB wifi device to that VM and from there do things.
The thing is if my host machine was running a linux based operating system i would not be using a virtual box to create another linux based system and use penetration testing applications on it (aircrack in my case )??
That is if I am using a windows based system i can never use this method, so it basically drops down to buying a wireless adapter.