Installing Docker on Kali Linux
To install Docker on Kali you need to remember that there is already a package named “docker”, therefore Docker has to be installed under a different name. If you install
docker you will not end up with the container version. The version we will be installing is named
docker.io. All commands are the same however, so running
docker on the command line will be the appropriate command.
kali@kali:~$ sudo apt update kali@kali:~$ kali@kali:~$ sudo apt install -y docker.io kali@kali:~$ kali@kali:~$ sudo systemctl enable docker --now kali@kali:~$ kali@kali:~$ docker kali@kali:~$
You can now get started with using docker, with
sudo. If you want to add yourself to the docker group to use
sudo, an additional step is needed:
kali@kali:~$ sudo usermod -aG docker $USER kali@kali:~$
If you would like to use a Kali Docker image, we have a doc page for that here.
Updated on: 2020-Jun-19