1、安装https协议、CA证书、dirmngr
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-get install dirmngr -y
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 update
apt install docker-ce -y
4、启动docker服务
service docker start
5、安装docker-compose
apt install docker-compose -y
标签:install,get,Kali,apt,ce,https,docker,安装
From: https://www.cnblogs.com/tanyiqu/p/17975726