如何卸载重装docker?
如何卸载重装docker?
sudo docker -v sudo apt-get remove docker sudo apt-get remove --auto-remove docker
sudo apt-get remove --purge lxc-docker
sudo apt-get autoremove --purge
sudo apt-get install lxc-docker
sudo docker -v
如果想重新装最新版本:
sudo docker -v sudo apt-get remove docker sudo apt-get remove --auto-remove docker sudo apt-get remove --purge lxc-docker sudo apt-get autoremove --purge
(注意:如果你此时运行sudo apt-get update,可能会在结尾出现错误:
W:GPG error:
docker Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8576A8BA8BD21E9)
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" sudo apt-get update sudo apt-get install lxc-docker sudo docker -v