![]() # Download the docker gpg file to Ubuntu sudo mkdir -p /etc/apt/keyringsĬurl -fsSL | sudo gpg -dearmor -o /etc/apt/keyrings/docker.gpg # Add Docker and docker compose support to the Ubuntu's packages list echo "deb apt-get install docker-ce docker-ce-cli containerd.io docker-compose-pluginsudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-pluginlinux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null :~$ sudo apt install -y docker-ce docker-ce-cli containerd.To install Docker and docker compose on Ubuntu, issue the following commands in a terminal window: # Docker and docker compose prerequisites sudo apt-get install curl Install the latest version of docker-ce: :~$ sudo apt update Sudo gpg -dearmor -o /etc/apt//docker-ce-archive-keyring.gpg 2021), its “bullseye”: :~$ printf '%s\n' "deb bullseye stable" | ![]() One thing to bear in mind, Kali Linux is based on Debian, so we need to use Debian’s current stable version (even though Kali Linux is a rolling distribution). Installing docker-ce on Kali Linuxĭocker-ce can be installed from Docker repository. ![]() If you would like to use a Kali Docker image, we have a doc page for that here. The final thing is to logout and in again. If you want to add yourself to the docker group to use docker without sudo, an additional step is needed: :~$ sudo usermod -aG docker $USER You can now get started with using docker, with sudo. All commands are the same however, so running docker on the command line will be the appropriate command: :~$ sudo apt update The version we will be installing is named docker.io. ![]() ![]() If you install docker you will not end up with the container version. To install Docker on Kali you need to remember that there is already a package named “docker”, therefore Docker has to be installed under a different name. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |