centos卸载docker

一、卸载方式

1、官方教程

sudo yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-engine

官方链接:https://docs.docker.com/engine/install/centos/

2、独立卸载每个模块

(1)卸载docker相关模块

[root@node1 ~]# yum list installed | grep docker
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
containerd.io.x86_64                 1.6.14-3.1.el7                  @docker-ce-stable
docker-ce.x86_64                     3:20.10.17-3.el7                @docker-ce-stable
docker-ce-cli.x86_64                 1:20.10.17-3.el7                @docker-ce-stable
docker-ce-rootless-extras.x86_64     20.10.22-3.el7                  @docker-ce-stable
docker-compose-plugin.x86_64         2.14.1-3.el7                    @docker-ce-stable
docker-scan-plugin.x86_64            0.23.0-3.el7                    @docker-ce-stable
nvidia-docker2.noarch                2.11.0-1                        @libnvidia-container
[root@node1 ~]# yum remove -y containerd.io.x86_64  docker-ce.x86_64 docker-ce-cli.x86_64 docker-ce-rootless-extras.x86_64 docker-compose-plugin.x86_64 docker-scan-plugin.x86_64

(2)卸载与nvidia-docker相关的依赖模块

[root@node1 ~]# yum list installed | grep nvidia
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
libnccl.x86_64                       2.7.8-1+cuda10.2                @nvidia-machine-learning
libnccl-devel.x86_64                 2.7.8-1+cuda10.2                @nvidia-machine-learning
libnccl-static.x86_64                2.7.8-1+cuda10.2                @nvidia-machine-learning
libnvidia-container-tools.x86_64     1.11.0-1                        @libnvidia-container
libnvidia-container1.x86_64          1.11.0-1                        @libnvidia-container
nvidia-container-runtime.noarch      3.11.0-1                        @libnvidia-container
nvidia-container-toolkit.x86_64      1.11.0-1                        @libnvidia-container
nvidia-container-toolkit-base.x86_64 1.11.0-1                        @libnvidia-container
nvidia-docker2.noarch                2.11.0-1                        @libnvidia-container
nvidia-machine-learning-repo-rhel7.x86_64
[root@node1 ~]# yum remove -y libnvidia-container-tools.x86_64 libnvidia-container1.x86_64  nvidia-container-runtime.noarch nvidia-container-toolkit.x86_64 nvidia-container-toolkit-base.x86_64 nvidia-docker2.noarch

你可能感兴趣的:(docker,docker,容器,运维)