P4wnP1_aloa icon indicating copy to clipboard operation
P4wnP1_aloa copied to clipboard

Can I install Docker on this image?

Open davidgomesdev opened this issue 3 years ago • 0 comments

I tried installing docker on this image, but at first, with the get-docker script, it denied due to being "kali", then I followed Kali's guide and, while I managed to install, I can't run a container.

root@kali:~# sudo systemctl enable docker --now
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

The service doesn't show anything useful

Nov 07 10:42:50 kali systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 07 10:42:50 kali systemd[1]: Failed to start Docker Application Container Engine.
Nov 07 10:42:50 kali systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Nov 07 10:42:50 kali systemd[1]: Stopped Docker Application Container Engine.
Nov 07 10:42:50 kali systemd[1]: docker.service: Start request repeated too quickly.
Nov 07 10:42:50 kali systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 07 10:42:50 kali systemd[1]: Failed to start Docker Application Container Engine.

The journalctl is not in this image.

When trying to start the daemon manually:

INFO[2021-11-07T10:45:31.012631062+01:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
INFO[2021-11-07T10:45:31.009295084+01:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=moby
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument

Even so, tried to run a container.

root@kali:~# docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

But nothing :\.

davidgomesdev avatar Nov 07 '21 09:11 davidgomesdev