Kali Linux安装dokcer
2019-08-24 本文已影响3人
子叶2019
1.卸载旧版
sudo apt-get remove docker docker-engine docker.io containerd runc
2.添加更新源
vim /etc/apt/sources.list.d/backports.list
在文件中添加下面这句话
deb http://http.debian.net/debian buster-backports main
3.安装依赖
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
4.获取GPG key
curl -fsSL https://download.docker.com/linux/debian /gpg | sudo apt-key add -
5.添加apt私有源
vim /etc/apt/sources.list.d/docker.list
在文件中添加下面这句话
deb [arch=amd64] https://download.docker.com/linux/debian buster stable
6.安装docker
sudo apt-get update
sudo apt-get install docker-ce