Skip to content

Control docker without root #40

@thomas-mc-work

Description

@thomas-mc-work

Regarding: https://docs.olivetin.app/install/docker_compose.html

I saw your recommendation to let the olivetin container run with root permission ion order to control the docker daemon. There is another way to achieve the same without becoming root and thus breaking some security principles: It's possible to add the group id of the docker group to the container user.

  1. Get the group id: getent group docker

  2. Add this to the docker-compose.yml:

     group_add:
       - "995" # docker
    

And that's it! WDYT? The impact from a security perspective is a lot less than working with a root user.

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