Table of Contents
Issue
The default Docker installation script provided by Docker tries to use the kali-rolling
release, which Docker does not officially support. We need to manually adjust the repository to use a supported Debian release, such as bullseye
, even when using the Docker installation script.
Here are the steps to manually set the Docker repository to bullseye
and then proceed with the installation:
- Remove Existing Docker List File: If the script has already created the Docker list file, remove it:
- Add the Correct Docker Repository Manually:
Add the Docker repository for Debian
bullseye
which is compatible with Kali Linux: - Update the Package Index: Update the package index to include Docker’s packages:
- Install Docker: Install Docker Engine, CLI, and containerd:
- Verify the Docker Installation: Check the Docker version to verify the installation:
- Start and Enable Docker Service: Start Docker and enable it to start on boot:
- Run a Test Docker Container: Verify that Docker is working by running a test container:
sudo rm /etc/apt/sources.list.d/docker.list
echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.asc] <https://download.docker.com/linux/debian> bullseye stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
sudo docker --version
sudo systemctl start docker
sudo systemctl enable docker
sudo docker run hello-world