系统版本
Parrot OS 4.6
安装步骤
-
添加Docker pgp key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
-
添加Docker源
sudo su echo -e 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list.d/docker.list
-
更新源
sudo apt update --fix-missing
-
清理之前的Docker
sudo apt remove docker docker-engine docker.io -y
-
安装Docker
sudo apt install docker-ce -y
-
查看docker版本
docker version
-
docker国内加速
sudo vi /etc/default/docker DOCKER_OPTS="--registry-mirror=http://f1361db2.m.daocloud.io" sudo service docker restart
-
设置非sudo,设置完成后重新登陆用户
sudo groupdel docker sudo groupadd docker sudo usermod -aG docker $USER sudo gpasswd -a ${USER} docker sudo service docker restart