docker kali in google shell-泓源视野

docker kali in google shell

Installing Docker on Kali Linux

Table of Contents
  •  docker run -h kali -v /home:/home =ti kalilinux/kali-rolling /bin/bash

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. If you install docker you will not end up with the container version. The version we will be installing is named docker.io. All commands are the same however, so running docker on the command line will be the appropriate command.

[email protected]:~$ sudo apt update[email protected]:~$[email protected]:~$ sudo apt install -y docker.io[email protected]:~$[email protected]:~$ sudo systemctl enable docker --now[email protected]:~$[email protected]:~$ docker[email protected]:~$

You can now get started with using docker, with sudo. If you want to add yourself to the docker group to use docker without sudo, an additional step is needed:

[email protected]:~$ sudo usermod -aG docker $USER[email protected]:~$

The final thing is to logout and in again.

If you would like to use a Kali Docker image, we have a doc page for that here.

Installing docker-ce on Kali Linux

docker-ce can be installed from Docker repository. 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). At the time of writing (Dec. 2021), its “bullseye”:

[email protected]:~$ printf '%s\n' "deb https://download.docker.com/linux/debian bullseye stable" | sudo tee /etc/apt/sources.list.d/docker-ce.list

Import the gpg key:

[email protected]:~$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-ce-archive-keyring.gpg

Install the latest version of docker-ce:

[email protected]:~$ sudo apt update[email protected]:~$ sudo apt install -y docker-ce docker-ce-cli containerd.io
本文由 泓源视野 作者:admin 发表,其版权均为 泓源视野 所有,文章内容系作者个人观点,不代表 泓源视野 对观点赞同或支持。如需转载,请注明文章来源。
5

发表评论

Protected with IP Blacklist CloudIP Blacklist Cloud
您是第8234233 位访客, 您的IP是:[18.206.92.240]