Skip to content

Add support for Docker with containerd-snapshotters #3643

Open
@mkutlak

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions