Hello, I am trying to install Kali Linux in Docker and when I run apt -y install kali-linux-headless, it installs correctly, but when the installation finishes, the first thing I do is run msfconsole and it just stays blank. I press Ctrl+C and all it shows is ‘Aborting…’. I don’t know if it’s a problem with the official Kali container or if I’m doing the installation wrong. Does this happen to anyone else? I am running Docker from a Debian 13 virtual machine with Docker version 26.1.5. Thank you.
I don’t know what “kali-linux-headless” is and what it contains exactly. A quick Google search suggests it installs kali linux packages not including the GUI. I also don’t know what the mentioned msfconsole is doing exactly, but if it tries to connect to a backend process, it will probably not run as the containers are not virtual machines so you can’t always instal everything in containers as you would on a virtual machine and in most cases there is no systemd or other process manager in the (Docker) containers..