卸载podman

列出本地系统上的所有镜像:

[root@mysql lib]# podman images
REPOSITORY               TAG         IMAGE ID      CREATED     SIZE
docker.io/library/mysql  latest      041315a16183  7 days ago  579 MB
docker.io/library/mysql  8.0.33      041315a16183  7 days ago  579 MB

删除 registry.redhat.io/rhel8/rsyslog 镜像:
要从您的系统中删除所有镜像:

[root@mysql lib]# podman rmi docker.io/library/mysql
Untagged: docker.io/library/mysql:latest
[root@mysql lib]# podman ps -a
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES
[root@mysql lib]# podman images
REPOSITORY               TAG         IMAGE ID      CREATED     SIZE
docker.io/library/mysql  8.0.33      041315a16183  7 days ago  579 MB
[root@mysql lib]# podman rmi docker.io/library/mysql
Error: docker.io/library/mysql: image not known
[root@mysql lib]# podman rmi docker.io/library/mysql:8.0.33
Untagged: docker.io/library/mysql:8.0.33
Deleted: 041315a161837f8bb87361e13390abda7159b98aeedee5e6152a0bb7a9b45f27
[root@mysql lib]# podman images
REPOSITORY  TAG         IMAGE ID    CREATED     SIZE

查看系统已经安装了哪些docker包:


[root@mysql lib]# yum list installed | grep podman
podman.x86_64                                     3:4.5.1-5.module_el8+461+0c6b54ea                       @AppStream
podman-catatonit.x86_64                           3:4.5.1-5.module_el8+461+0c6b54ea                       @AppStream
podman-docker.noarch                              3:4.5.1-5.module_el8+461+0c6b54ea                       @AppStream
[root@mysql lib]# yum list installed | grep docker
podman-docker.noarch                              3:4.5.1-5.module_el8+461+0c6b54ea                       @AppStream
[root@mysql lib]# yum remove podman.x86_64 podman-catatonit.x86_64 podman-docker.noarch
Dependencies resolved.
===========================================================================================
 Package                     Arch   Version                               Repository  Size
===========================================================================================
Removing:
 podman                      x86_64 3:4.5.1-5.module_el8+461+0c6b54ea     @AppStream  50 M
 podman-catatonit            x86_64 3:4.5.1-5.module_el8+461+0c6b54ea     @AppStream 765 k
 podman-docker               noarch 3:4.5.1-5.module_el8+461+0c6b54ea     @AppStream 7.6 k
Removing unused dependencies:
 conmon                      x86_64 3:2.1.7-1.module_el8+454+d7ef4b8d     @AppStream 172 k
 container-selinux           noarch 2:2.218.0-1.module_el8+454+d7ef4b8d   @AppStream  67 k
 containernetworking-plugins x86_64 1:1.3.0-2.module_el8+461+0c6b54ea     @AppStream  61 M
 containers-common           x86_64 2:1-51.module_el8+454+d7ef4b8d        @AppStream 504 k
 criu                        x86_64 3.18-4.module_el8+454+d7ef4b8d        @AppStream 1.5 M
 fuse-overlayfs              x86_64 1.12-1.module_el8+454+d7ef4b8d        @AppStream 128 k
 fuse3                       x86_64 3.2.1-12.el8                          @base       90 k
 fuse3-libs                  x86_64 3.3.0-17.el8                          @base      274 k
 libnet                      x86_64 1.1.6-15.el8                          @AppStream 170 k
 libslirp                    x86_64 4.4.0-1.module_el8+454+d7ef4b8d       @AppStream 134 k
 protobuf-c                  x86_64 1.3.0-8.el8                           @AppStream  56 k
 runc                        x86_64 1:1.1.7-2.module_el8+463+b24391b1     @AppStream 9.7 M
 shadow-utils-subid          x86_64 2:4.6-18.el8                          @base      205 k
 slirp4netns                 x86_64 1.2.0-3.module_el8+454+d7ef4b8d       @AppStream 103 k

Transaction Summary
===========================================================================================
Remove  17 Packages

Freed space: 126 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                   1/1 
  Running scriptlet: podman-docker-3:4.5.1-5.module_el8+461+0c6b54ea.noarch            1/1 
  Erasing          : podman-docker-3:4.5.1-5.module_el8+461+0c6b54ea.noarch           1/17 
  Running scriptlet: podman-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64                  2/17 
  Erasing          : podman-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64                  2/17 
  Running scriptlet: podman-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64                  2/17 
  Erasing          : containers-common-2:1-51.module_el8+454+d7ef4b8d.x86_64          3/17 
  Erasing          : container-selinux-2:2.218.0-1.module_el8+454+d7ef4b8d.noarch     4/17 
  Running scriptlet: container-selinux-2:2.218.0-1.module_el8+454+d7ef4b8d.noarch     4/17 
  Erasing          : podman-catatonit-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64        5/17 
  Running scriptlet: podman-catatonit-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64        5/17 
  Erasing          : fuse-overlayfs-1.12-1.module_el8+454+d7ef4b8d.x86_64             6/17 
  Erasing          : slirp4netns-1.2.0-3.module_el8+454+d7ef4b8d.x86_64               7/17 
  Erasing          : runc-1:1.1.7-2.module_el8+463+b24391b1.x86_64                    8/17 
  Erasing          : criu-3.18-4.module_el8+454+d7ef4b8d.x86_64                       9/17 
  Erasing          : libnet-1.1.6-15.el8.x86_64                                      10/17 
  Running scriptlet: libnet-1.1.6-15.el8.x86_64                                      10/17 
/sbin/ldconfig: /usr/lib64/llvm15/lib/libclang.so.15 is not a symbolic link


  Erasing          : protobuf-c-1.3.0-8.el8.x86_64                                   11/17 
  Erasing          : libslirp-4.4.0-1.module_el8+454+d7ef4b8d.x86_64                 12/17 
  Erasing          : fuse3-3.2.1-12.el8.x86_64                                       13/17 
  Erasing          : fuse3-libs-3.3.0-17.el8.x86_64                                  14/17 
  Running scriptlet: fuse3-libs-3.3.0-17.el8.x86_64                                  14/17 
/sbin/ldconfig: /usr/lib64/llvm15/lib/libclang.so.15 is not a symbolic link


  Erasing          : conmon-3:2.1.7-1.module_el8+454+d7ef4b8d.x86_64                 15/17 
  Erasing          : containernetworking-plugins-1:1.3.0-2.module_el8+461+0c6b54ea   16/17 
  Running scriptlet: containernetworking-plugins-1:1.3.0-2.module_el8+461+0c6b54ea   16/17 
  Erasing          : shadow-utils-subid-2:4.6-18.el8.x86_64                          17/17 
  Running scriptlet: shadow-utils-subid-2:4.6-18.el8.x86_64                          17/17 
/sbin/ldconfig: /usr/lib64/llvm15/lib/libclang.so.15 is not a symbolic link


  Verifying        : conmon-3:2.1.7-1.module_el8+454+d7ef4b8d.x86_64                  1/17 
  Verifying        : container-selinux-2:2.218.0-1.module_el8+454+d7ef4b8d.noarch     2/17 
  Verifying        : containernetworking-plugins-1:1.3.0-2.module_el8+461+0c6b54ea    3/17 
  Verifying        : containers-common-2:1-51.module_el8+454+d7ef4b8d.x86_64          4/17 
  Verifying        : criu-3.18-4.module_el8+454+d7ef4b8d.x86_64                       5/17 
  Verifying        : fuse-overlayfs-1.12-1.module_el8+454+d7ef4b8d.x86_64             6/17 
  Verifying        : fuse3-3.2.1-12.el8.x86_64                                        7/17 
  Verifying        : fuse3-libs-3.3.0-17.el8.x86_64                                   8/17 
  Verifying        : libnet-1.1.6-15.el8.x86_64                                       9/17 
  Verifying        : libslirp-4.4.0-1.module_el8+454+d7ef4b8d.x86_64                 10/17 
  Verifying        : podman-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64                 11/17 
  Verifying        : podman-catatonit-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64       12/17 
  Verifying        : podman-docker-3:4.5.1-5.module_el8+461+0c6b54ea.noarch          13/17 
  Verifying        : protobuf-c-1.3.0-8.el8.x86_64                                   14/17 
  Verifying        : runc-1:1.1.7-2.module_el8+463+b24391b1.x86_64                   15/17 
  Verifying        : shadow-utils-subid-2:4.6-18.el8.x86_64                          16/17 
  Verifying        : slirp4netns-1.2.0-3.module_el8+454+d7ef4b8d.x86_64              17/17 

Removed:
  conmon-3:2.1.7-1.module_el8+454+d7ef4b8d.x86_64                                          
  container-selinux-2:2.218.0-1.module_el8+454+d7ef4b8d.noarch                             
  containernetworking-plugins-1:1.3.0-2.module_el8+461+0c6b54ea.x86_64                     
  containers-common-2:1-51.module_el8+454+d7ef4b8d.x86_64                                  
  criu-3.18-4.module_el8+454+d7ef4b8d.x86_64                                               
  fuse-overlayfs-1.12-1.module_el8+454+d7ef4b8d.x86_64                                     
  fuse3-3.2.1-12.el8.x86_64                                                                
  fuse3-libs-3.3.0-17.el8.x86_64                                                           
  libnet-1.1.6-15.el8.x86_64                                                               
  libslirp-4.4.0-1.module_el8+454+d7ef4b8d.x86_64                                          
  podman-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64                                          
  podman-catatonit-3:4.5.1-5.module_el8+461+0c6b54ea.x86_64                                
  podman-docker-3:4.5.1-5.module_el8+461+0c6b54ea.noarch                                   
  protobuf-c-1.3.0-8.el8.x86_64                                                            
  runc-1:1.1.7-2.module_el8+463+b24391b1.x86_64                                            
  shadow-utils-subid-2:4.6-18.el8.x86_64                                                   
  slirp4netns-1.2.0-3.module_el8+454+d7ef4b8d.x86_64                                       

Complete!
[root@mysql lib]# docker --version
-bash: /usr/bin/docker: No such file or directory
[root@mysql lib]# podman --version
-bash: /usr/bin/podman: No such file or directory
[root@mysql lib]# 

猜你喜欢

转载自blog.csdn.net/weixin_44048054/article/details/131677533