系統 - K3s - List、Delete、Pull Image


List Image

$ sudo k3s ctr image ls | grep nginx
    docker.io/library/nginx:1.16.1                                                                                     application/vnd.docker.distribution.manifest.list.v2+json sha256:d20aa6d1cae56fd17cd458f4807e0de462caf2336f0b70b5eeb69fcaaf30dd9c 48.6 MiB  linux/386,linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x io.cri-containerd.image=managed                                 
    docker.io/library/nginx@sha256:d20aa6d1cae56fd17cd458f4807e0de462caf2336f0b70b5eeb69fcaaf30dd9c                    application/vnd.docker.distribution.manifest.list.v2+json sha256:d20aa6d1cae56fd17cd458f4807e0de462caf2336f0b70b5eeb69fcaaf30dd9c 48.6 MiB  linux/386,linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x io.cri-containerd.image=managed

Delete Image

$ sudo k3s ctr image delete docker.io/library/nginx:1.16.1
    docker.io/library/nginx:1.16.1

$ sudo k3s ctr image delete docker.io/library/nginx@sha256:d20aa6d1cae56fd17cd458f4807e0de462caf2336f0b70b5eeb69fcaaf30dd9c
    docker.io/library/nginx@sha256:d20aa6d1cae56fd17cd458f4807e0de462caf2336f0b70b5eeb69fcaaf30dd9c

Pull Image

$ sudo k3s crictl pull docker.io/library/nginx:1.16.1
    Image is up to date for sha256:dfcfd8e9a5d38fb82bc8f9c299beba2df2232b7712b62875d5238cead7a5831c