0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Issue Installing Docker on Kali Linux

Posted at

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! :)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?