ubuntu 如何卸载重装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
异常:
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
posted on 2016-11-11 14:49 alex.shu 阅读(22882) 评论(1) 编辑 收藏 举报