On Kali Linux, running the following official Docker installation shell script fails:
https://github.com/docker/docker-install
When executing the script, the output is as follows:
$ sudo sh get-docker.sh
# Executing docker install script, commit: 7040dd2bf115a359317b1de84de611aeabcb7bc2
+ sh -c apt-get -qq update >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" -o /etc/apt/keyrings/docker.asc
+ sh -c chmod a+r /etc/apt/keyrings/docker.asc
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian kali-rolling stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get -qq update >/dev/null
E: The repository 'https://download.docker.com/linux/debian kali-rolling Release' does not have a Release file.
Instead, follow the official documentation below:
https://docs.docker.com/engine/install/debian/
Before running Install the Docker packages, edit the repository list /etc/apt/sources.list.d/docker.list
.
Change the contents from:
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian kali-rolling stable
To (note: replace “bullseye” with the appropriate newer release if available):
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bullseye stable
In my environment, no additional edits were required for /etc/apt/sources.list.d/docker-ce.list
.
Finally, run the following commands to complete the installation:
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Thanks for reading! :)