ubuntu完全卸载docker及再次安装


1个月前 65次点击 来自 Linux

标签: Docker

1.删除docker

apt-get autoremove docker docker-ce docker-engine  docker.io  containerd runc
dpkg -l | grep docker
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P #删除无用配置文件
apt-get autoremove docker-ce-* #删除插件等
rm -rf /etc/systemd/system/docker.service.d #删除docker的相关配置&目录
rm -rf /var/lib/docker

2.确定docker卸载完毕后再次安装

docker --version

3.安装docker


https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script

Made with in Shangrao,China By Devler.

Copyright © Devler 2012 - 2022

赣ICP备19009883号-1