Skip to content

Does the mapper work with systemd cgroup driver #10

@cf-sewe

Description

@cf-sewe

I am running Ubuntu 22 with Docker 24.0.6.
Trying to get /dev/zfs access to work in the container (for ZFS filesystem management).

Docker Info:

Server:
 Server Version: 24.0.6
 Cgroup Driver: systemd
 Cgroup Version: 2
 Swarm: active
  Is Manager: true
  Managers: 3
  Nodes: 3
...

I have installed the plugin:

ID             NAME                                   DESCRIPTION                                  ENABLED
072779dcdbe8   ndouba/device-mapping-manager:latest   A device mapping plugin for swarm clusters   true

But when I run my container, I am unable to get the device access to work.

docker run -it --rm   --cap-add=SYS_ADMIN   --mount='type=bind,source=/dev/zfs,destination=/dev/zfs'   --entrypoint /bin/sh
/ # ls -al /dev/zfs
crw-rw-rw-    1 root     root       10, 249 Oct  3 15:01 /dev/zfs
/ # zfs list
Failed to initialize the libzfs library.

My questions are:

  1. Is systemd cgroup driver supported by DMM?
  2. Where can I find the logs of the DMM plugin? I dont see the plugin container running nor any relevant logs in the docker logs.

I am glad for any hints getting this to work!
Other workarounds mentioned in the moby#1244 issue (like running a docker run --device=XXX in a Swarm service) I unfortunately cannot use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions