top of page

How to Install 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.


Now, let's what are the steps to installation.


Step 1: Update Kali DB and install "docker.io"


kali@kali:~$ sudo apt update
kali@kali:~$ sudo apt install -y docker.io 

Step 2: Enable the Docker.


Now, the docker has been installed on your kali machine but you cannot use it yet. You have to enable it first.


kali@kali:~$ sudo systemctl enable docker --now 

You can now get started with using docker, with sudo. If you want to add yourself to the docker group to use docker without sudo, an additional step is needed:


Step 3: Adding non-root users to the docker.


kali@kali:~$ sudo usermod -aG docker $USER

Now you just need to restart your machine or just log out and log in again to save changes and you are good to go.

Comments


©2022 www.theblackthreat.in All right reserved.
bottom of page