I tried creating a custom container based off of the Kali image in the official LXC repo (https://us.images.linuxcontainers.org/images/), and have been having some issues running it. At first I got a message saying that the kali-rolling OS wasn't supported, so I changed /etc/lsb-release and /etc/debian_version to both be 'unmanaged'. At this point I got a bunch of errors related to making /dev
I understand that unprivileged containers generally can't make nodes, but I checked out my default debian container installation and it appears many of the /dev/ nodes present without running in a privileged context? Can someone help me understand this, would it be possible to run the kali image in an unprivileged container?
Code:
tar: test/dev/ptmx Cannot mknod: Operation not permitted
tar: test/dev/tty Cannot mknod: Operation not permitted
...
I understand that unprivileged containers generally can't make nodes, but I checked out my default debian container installation and it appears many of the /dev/ nodes present without running in a privileged context? Can someone help me understand this, would it be possible to run the kali image in an unprivileged container?