Kali安装docker环境

1、安装https协议以及CA证书、dirmngr

apt-get update

apt-get install -y apt-transport-https ca-certificates

apt-get install dirmngr

2、添加GPG密钥

curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add -

3、添加更新源

echo 'deb https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/ buster stable' | sudo tee /etc/apt/sources.list.d/docker.list

4、系统更新以及安装docker

apt-get update 

apt-get install docker-ce

5、启动docker服务器

systemctl start docker.service 

6、安装compose

apt install docker-compose

7、docker安装测试(hello-world)

在这里插入图片描述
PS:

docker version   查看docker的版本信息
 
docker images   查看拥有的images
 
docker ps       查看docker container

在这里插入图片描述
文章转载于https://zhuanlan.zhihu.com/p/82361096

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐