Skip to content

Enforce host user when using Docker as runtime #394

@marcodelapierre

Description

@marcodelapierre

Hi Vanessa,

based on my experience, I'd recommend adding the following flags to all aliases and commands when using Docker:

-u `id -u`:`id -g`

This should work with most Linux'es (tested with Ubuntu, Centos, SLES, CLE).
In this way, files created in the host by the container will have the right ownership.

[edited]: inverted quotes ` ` are better than $( ) as they also work in csh.

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