Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

export UID="$(id -u)" cannot be used since UID is read only and container is expected to run as non-root #82

@telefax

Description

@telefax

The instructions says

export UID="$(id -u)"

Which on Centos 7 at least results in:
-bash: UID: readonly variable

and then docker-compose fails with:

Step 10/12 : RUN useradd --groups www-data,root --uid $DOCKER_UID --create-home $USER
 ---> Running in a0ac44e61fae
useradd: UID 0 is not unique

So two problems, UID exists already and reseting won't do any difference and
the containers seems to be expected to run as non-root so the documentation needs to clarify this.
You could do something like this:

useradd docker-probind
export PROBIND_USER_UID=$(id -u docker-probind)

and update docker-compose.yml with PROBIND_USER_UID.
Then dont forget to chown -R the git directory with PROBIND_USER_UID, depending on how you run your compose.

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