Skip to content

mode option in tmpfs volume is ignoredΒ #3226

@neben

Description

@neben

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

Metadata

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