install docker kali linux
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:~$
Here is what the above code is Doing:
1. Update the apt package index.
2. Install the latest version of Docker CE.
3. Enable Docker CE to start on boot.
4. Start Docker CE.
5. Verify that Docker CE is installed correctly by running the hello-world image.