最近因为要在kali上搭建一个文件上传测试平台,所以得安装一个docker环境。
安装https协议以及CA证书
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-get install dirmngr
添加GPG密钥
1
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
系统更新以及安装docker
apt-get update
apt-get install docker-ce
启动docker服务器
service docker start
安装compose
apt install docker-compose
docker安装测试(hello-world)
docker version
查看docker的版本信息
docker images
查看拥有的images
docker ps
查看docker container