Skip to content

Permissions on for files mounted with Mutagen-based caching #4593

@rastasheep

Description

@rastasheep
  • I have tried with the latest version of my channel (Stable or Edge)

Information

  • macOS Version: 10.15.4
  • Docker for Mac: 2.3.1.0 (45408) edge

I'm using docker-compose to mount files into container which is run with root user (official node image with node user).
When I set up Mutagen based caching, my non root user doesn't have permissions to edit mounted files. Without caching enabled mounted files are owned by that non root user.

Here is service definition from docker-compose:

app:
    build:
      context: ./packages/web-client/
      dockerfile: Dockerfile.dev
    working_dir: /application
    user: node
    volumes:
      - .:/application:cached
      - ./script/dev/entrypoint.sh:/home/node/entrypoint.sh:cached

File permissions without caching
Screenshot 2020-05-21 at 13 42 46

File permissions with Mutagen-based caching
Screenshot 2020-05-21 at 13 53 08

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