Skip to content

[Docker] Container permissions #6589

Open

Description

@SchrodingersGat

currently the docker / docker compose setup runs with root permissions - this means that any external files are created under the root user.

  • How to force run as a different user?
  • Do we need to make any changes to the Dockerfile to address this?
  • What about other containers which store data (postgres / caddy)

Activity

  1. added
    docker
    setup
    on Feb 27, 2024
  2. added this to the horizon milestone on Feb 27, 2024
  3. oddstr13 commented on Mar 13, 2024

    @oddstr13

    Setting the user in the compose file is not sufficient, attempting to access file //.gitconfig fails – I did not investigate any further.

    Caddy will be needing at least capabilities NET_BIND_SERVICE in order to bind to the privileged ports 80 and 443, at least for older docker versions

    inventree-server  | error: could not lock config file //.gitconfig: Permission denied
    inventree-worker  | error: could not lock config file //.gitconfig: Permission denied
    
  4. modified the milestones: horizon, 2.0.0 on Jul 2, 2025
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

    dockersetup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions