Skip to content

Set custom UID and GID in docker #230

Closed

Description

@mada199122

Is it possible to set a different UID and GID in docker compose?

If I add the command user: $(id -u):$(id -g) with a UID not belonging to a root user Podsync cannot access to the file.

Thanks

Activity

  1. girlpunk commented on Nov 4, 2021

    @girlpunk

    If you're changing the user an existing install runs as, you'll likely need to go through and change the permissions on all the files so that the new user has access to them. That's likely what caused the issue when changing the user in Docker directly.

  2. mada199122 commented on Nov 5, 2021

    @mada199122
    Author

    tried with a clean new volume...
    but it doesn't work...

  3. paulstaab commented on Dec 3, 2022

    @paulstaab

    Setting a custom UID and GID works for me if I also mount a volume for /app/db in the container with e.g. -v podsync-database:/app/db.

  4. Repository owner locked and limited conversation to collaborators on May 5, 2023
  5. converted this issue into a discussion #523 on May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions