containerd / nerdctl

contaiNERD CTL - Docker-compatible CLI for containerd, with support for Compose, Rootless, eStargz, OCIcrypt, IPFS, ...
Apache License 2.0
8.1k stars 600 forks source link

image auto get multiple tags when pulled off #3622

Open jeyrce opened 17 hours ago

jeyrce commented 17 hours ago

The Problem

Any image I pulled off show multiple tags, one is okay, another is <none> repository and <none> tag, like these:

[root@imseek ~]# nerdctl image ls
REPOSITORY                                     TAG              IMAGE ID        CREATED         PLATFORM       SIZE         BLOB SIZE
nginx                                          1.23.1-alpine    f9741bc8a1b6    24 hours ago    linux/amd64    26.3 MiB     23.9 MiB
registry                                       2.8.3            39c2c9edfb63    2 days ago      linux/amd64    25.8 MiB     24.8 MiB
registry.imseek.cn/ghost                       5.88.1-alpine    3d63c2646324    3 hours ago     linux/amd64    773.9 MiB    153.5 MiB
registry.imseek.cn/hello-world                 latest           d37ada95d47a    9 hours ago     linux/amd64    20.0 KiB     3.5 KiB
registry.imseek.cn/jeyrce/firework             latest           88caa3713f67    3 hours ago     linux/amd64    26.8 MiB     10.0 MiB
registry.imseek.cn/jeyrce/ishare               v1.0.3-final     8ffaf30219d4    3 hours ago     linux/amd64    390.5 MiB    117.8 MiB
registry.imseek.cn/jeyrce/jeyrce               2024-05-31       f4722a56715a    3 hours ago     linux/amd64    28.0 MiB     11.0 MiB
registry.imseek.cn/jeyrce/poetry               latest           95ab0ab61c95    3 hours ago     linux/amd64    31.7 MiB     14.8 MiB
registry.imseek.cn/jeyrce/vv-happy-birthday    latest           c7807f88ac52    3 hours ago     linux/amd64    35.6 MiB     18.6 MiB
registry.imseek.cn/mysql                       8.0.29           44f98f4dd825    3 hours ago     linux/amd64    455.5 MiB    125.7 MiB
registry.imseek.cn/nginx                       1.23.1-alpine    4550bf745cc1    3 hours ago     linux/amd64    26.3 MiB     9.7 MiB
registry.imseek.cn/redis                       7.0.4-alpine     7c9e7c305125    3 hours ago     linux/amd64    30.1 MiB     11.3 MiB
<none>                                         <none>           88caa3713f67    3 hours ago     linux/amd64    26.8 MiB     10.0 MiB
<none>                                         <none>           44f98f4dd825    3 hours ago     linux/amd64    455.5 MiB    125.7 MiB
<none>                                         <none>           4550bf745cc1    24 hours ago    linux/amd64    26.3 MiB     9.7 MiB
<none>                                         <none>           39c2c9edfb63    2 days ago      linux/amd64    25.8 MiB     24.8 MiB
<none>                                         <none>           f4722a56715a    3 hours ago     linux/amd64    28.0 MiB     11.0 MiB
<none>                                         <none>           7c9e7c305125    3 hours ago     linux/amd64    30.1 MiB     11.3 MiB
<none>                                         <none>           3d63c2646324    3 hours ago     linux/amd64    773.9 MiB    153.5 MiB
<none>                                         <none>           95ab0ab61c95    3 hours ago     linux/amd64    31.7 MiB     14.8 MiB
<none>                                         <none>           8ffaf30219d4    3 hours ago     linux/amd64    390.5 MiB    117.8 MiB
<none>                                         <none>           c7807f88ac52    3 hours ago     linux/amd64    35.6 MiB     18.6 MiB
<none>                                         <none>           d37ada95d47a    9 hours ago     linux/amd64    20.0 KiB     3.5 KiB

My Information

These are my version informations and configurations:

[root@imseek ~]# uname -a
Linux imseek 5.10.134-17.2.al8.x86_64 #1 SMP Fri Aug 9 15:49:42 CST 2024 x86_64 x86_64 x86_64 GNU/Linux
[root@imseek ~]# nerdctl version
Client:
 Version:   v1.7.7
 OS/Arch:   linux/amd64
 Git commit:    5882c720f4e7f358fb26b759e514b3ae9dd8ea83
 buildctl:
  Version:  v0.15.2
  GitCommit:    9e14164a1099d3e41b58fc879cbdd6f2b2edb04e

Server:
 containerd:
  Version:  v2.0.0-rc.6
  GitCommit:    b70cce2085802e9e166ed8d92b42058c550f9ca3
 runc:
  Version:  1.1.14
  GitCommit:    v1.1.14-0-g2c9f5602

[root@imseek ~]# cat /etc/nerdctl/nerdctl.toml
# This is an example of /etc/nerdctl/nerdctl.toml .
# Unrelated to the daemon's /etc/containerd/config.toml .

debug          = false
debug_full     = false
address        = "unix:///run/containerd/containerd.sock"
namespace      = "k8s.io"
snapshotter    = "stargz"
cgroup_manager = "cgroupfs"
hosts_dir      = ["/etc/containerd/certs.d", "/etc/docker/certs.d"]
experimental   = true
[root@imseek ~]# nerdctl info
Client:
 Namespace: k8s.io
 Debug Mode:    false

Server:
 Server Version: v2.0.0-rc.6
 Storage Driver: stargz
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Log: fluentd journald json-file syslog
  Storage: native overlayfs stargz
 Security Options:
  seccomp
   Profile: builtin
 Kernel Version: 5.10.134-17.2.al8.x86_64
 Operating System: Alibaba Cloud Linux 3.2104 U10 (OpenAnolis Edition)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 1.828GiB
 Name: imseek
 ID: 2b2c9ffb-4f8b-477a-bd00-ab240bf6a9d6

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
[root@imseek ~]# containerd-stargz-grpc --version
containerd-stargz-grpc v0.15.1 64ab83bd65cd4a763e262955984232cc5ddfeb3f
[root@imseek ~]# cat /etc/containerd-stargz-grpc/config.toml
#test

Is there something wrong in my configration?

apostasie commented 13 hours ago

Hey @jeyrce

How did you pull these images? Are you using kubectl, or something else to do that, or are you using nerdctl?