Post

Device Mapping Manager - Mount Devices In Docker Swarm

Device Mapping Manager - Mount Devices In Docker Swarm

Device Mapping Manager maps and enables devices into containers running on docker swarm. It is currently only compatible with linux systems that use cgroup v1 and v2.

Docker Compose

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: "3.8"
services:
  dmm:
    image: docker
    entrypoint: docker
    command: |
      run 
      -i
      --restart always 
      --privileged 
      --cgroupns=host 
      --pid=host 
      --userns=host 
      -v /sys:/host/sys 
      -v /var/run/docker.sock:/var/run/docker.sock 
      ghcr.io/allfro/allfro/device-mapping-manager:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    deploy:
      mode: global
This post is licensed under CC BY 4.0 by the author.