swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

mode option in tmpfs volume is ignored

Open neben opened this issue 1 month ago • 0 comments

The mode option of tmpfs volumes is ignored in swarm mode.

compose.yaml:

    volumes:
      - type: tmpfs
        target: /run
        tmpfs:
          size: 268435456
          mode: 1777

But in the resulting container the mode is not applied:

root@feb5df8c8de1:/# ls -ld /run/
drwxr-xr-x 4 root root 100 Nov 10 20:25 /run/
# dockerd -v
Docker version 28.5.2, build 89c5e8f

neben avatar Nov 10 '25 20:11 neben