Install Docker on Kali & Run Your First Container in 5 Mins 🐳

Опубликовано: 18 Июль 2026
на канале: Bytes & Belief
114
4

🚀 Install Docker & Docker Compose on Kali Linux (2025) — Full Guide, Zero Errors!
Want to install Docker & Docker Compose on Kali Linux 2025 without running into errors? You’re in the right place!
In this fast, clean, step-by-step tutorial, we’ll walk through the exact commands to get your setup running — smooth and secure.

✅ What You’ll Learn:
Fix broken Docker repository files 🔧

Add the right Docker repo for Debian “bookworm” 🐧

Securely add Docker’s GPG key 🔐

Install Docker Engine & Docker Compose plugin 🐳

Verify Docker is running

(Optional) Run Docker without sudo

🧠 Beginner-friendly. Cybersecurity-aware. Copy-paste ready.
1. Remove broken Docker repository
sudo rm /etc/apt/sources.list.d/docker.list

2. Add Docker repo for Debian bookworm
ARCH=$(dpkg --print-architecture)
echo "deb [arch=${ARCH} signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable" | sudo tee /etc/apt/sources.list.d/docker.list

3. Add Docker’s GPG key
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/docker.gpg

4. Update & install Docker + Compose plugin
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

5. Check Docker socket
sudo systemctl status docker.socket

6. Run hello-world test container
sudo docker run hello-world

7. (Optional) Run Docker without sudo
sudo usermod -aG docker $USER
newgrp docker

👍 Like if this helped
🔔 Subscribe for DevOps & Linux how-tos
💬 Questions? Drop them below!
#docker #kalilinux #Linux2025 #dockercompose #devops #containerization #cybersecurity #linuxtutorials