swarmkit
swarmkit copied to clipboard
mode option in tmpfs volume is ignored
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