Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Docker with containerd-snapshotters #3643

Open
mkutlak opened this issue Jan 7, 2025 · 0 comments
Open

Add support for Docker with containerd-snapshotters #3643

mkutlak opened this issue Jan 7, 2025 · 0 comments

Comments

@mkutlak
Copy link

mkutlak commented Jan 7, 2025

There is an experimental feature in Docker for containerd snapshotters [1][2][3].

$ cat /etc/docker/daemon.json
{
  "features": {
    "containerd-snapshotter": true
  }
}

$ docker info | grep -iA1 "storage"
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1

When it is enabled, images are stored in /var/lib/containerd/io.containerd.snapshotter.v1.<storage_driver> instead of /var/lib/docker/image/<storage_driver> and it causes cAdvisor to keep failing with this error message:

manager.go:1116] Failed to create existing container: ... failed to identify the read-write layer ID for container "<CONTAINER_ID>". - open /rootfs/var/lib/docker/image/overlayfs/layerdb/mounts/<CONTAINER_ID>/mount-id: no such file or directory

Relevant line of code:

return "", fmt.Errorf("failed to identify the read-write layer ID for container %q. - %v", containerID, err)

This issue might be also relevant: moby/moby#46757


  1. https://www.docker.com/blog/extending-docker-integration-with-containerd/
  2. https://docs.docker.com/engine/storage/containerd/#enable-containerd-image-store-on-docker-engine
  3. https://github.com/containerd/containerd/blob/main/docs/snapshotters/README.md#snapshotters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant