Let’s learn Docker and set it up.

So what’s Docker?

Well it’s complicated.

It’s a way to install, maintain and run applications.

But apps are self-contained, hence the term containers.

Docker allows networking and lots more.

Installing Docker

Best way is to follow the docs.

Kali Linux

If you’re on Kali Linux, don’t follow the official guide.

Go to Installing Docker on Kali Linux from Kali.org instead.

sudo apt update
sudo apt install -y docker.io
sudo systemctl enable docker --now
sudo usermod -aG docker $USER

Troubleshooting Docker

You might see an error such as

WARNING: Error loading config file: /root/.docker/config.json: read /root/.docker/config.json: is a directory

For that, do the following from here:

sudo rm -fr /root/.docker/config.json

sudo echo '{"credsStore":"wincred"}' >> /root/.docker/config.json

Thanks for reading