moby: docker image ls does not show images loaded from a tar file

Description

After changing the storage driver to containerd and loading images from tar file from other storage drivers, images are not showing in “docker image ls” but it does show up in “ctr -n moby images ls”.

Reproduce

From old storage driver.

docker save image1 -o image1.tar docker save image2 -o image2.tar docker-compose down change the storage driver in sduo vi /etc/docker/daemon.json “features” : { “containerd-snapshotter”: true }, sudo systemctl docker docker load --input image1.tar docker load --input image2.tar docker-compose up docker ps docker image ls # does not show any images. sudo ctr -n moby images ls # shows both images are present.

Expected behavior

Received. docker image ls no images shows up which is loaded via docker load from a tar file (which was created from different storage driver)

Exepcted: docker image ls should show all the loaded images.

docker version

Client:
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.3
 Git commit:        24.0.5-0ubuntu1~20.04.1
 Built:             Mon Aug 21 19:50:14 2023
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.3
  Git commit:       24.0.5-0ubuntu1~20.04.1
  Built:            Mon Aug 21 19:50:14 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.12-0ubuntu1~20.04.3
  GitCommit:
 runc:
  Version:          1.1.7-0ubuntu1~20.04.2
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:

docker info

Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
 Containers: 5
  Running: 5
  Paused: 0
  Stopped: 0
 Images: 9
 Server Version: 24.0.5
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version:
 runc version:
 init version:
 Security Options:
  apparmor
  seccomp
   Profile: builtin
 Kernel Version: 5.4.0-146-generic
 Operating System: Ubuntu 20.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 15.53GiB
 Name: RGDTEST
 ID: 505296e0-1621-47ce-8811-fe172e518265
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Additional Info

No response

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

Good to hear! I’ll close the issue then.