centos 卸载docker

2019-10-15  本文已影响0人  wiken_he
yum remove docker \
                    docker-client \
                    docker-client-latest \
                    docker-common \
                   docker-latest \
                   docker-latest-logrotate \
                   docker-logrotate \
                    docker-selinux \
                    docker-engine-selinux \
                  docker-engine

rm -rf /etc/systemd/system/docker.service.d

rm -rf /var/lib/docker

rm -rf /var/run/docker

# 查询安装过的包
yum list installed | grep docker

# 删除安装的软件包
yum -y remove docker-engine.x86_64
上一篇下一篇

猜你喜欢

热点阅读