Skip to content

Permissions are not specific in tmpfs subdirectory of volume directory #3214

@Kwadz

Description

@Kwadz

Let's assume this docker-compose.yml:

version: '3'

services:
  website:
    build:
      context: .
      dockerfile: ./.docker/php/Dockerfile
    volumes:
      - .:/var/www/html/
    tmpfs:
      - /var/www/html/app/cache/

Expected behaviour: the permissions of /var/www/html/app/cache/ should be 1777 (the default for tmpfs-mode).

Actual behavior: the permissions of /var/www/html/app/cache/ is overridden by the permissions of /var/www/html/

This feature could help a lot about performance, by defining the cache directory of a project as a tmpfs volume.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions