kali安装docker环境
最近因为要在kali上搭建一个文件上传测试平台,所以得安装一个docker环境。
-
安装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 -echo 'deb https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/ buster stable' | sudo tee /etc/apt/sources.list.d/docker.list
3.系统更新以及安装docker
apt-get updateapt install docker-ce
4.启动docker服务器
service docker start
5.安装compose
apt install docker-compose
6.docker安装测试(hello-world)

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

本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
