Skip to content

ADD sets uid/gid based on host ownership #3950

@ewindisch

Description

@ewindisch

As per documentation, ADD would set the UID/GID to 0 on all files copied into the filesystem.

However, the UID/GID are preserved from the host.

From inside a container:
docker-container$ ls -l devstack
-rw-rw-r-- 1 107 113 57 Feb 3 18:10 devstack

From my build-host:
jenkins-slave$ id jenkins
uid=107(jenkins) gid=113(jenkins) groups=113(jenkins),999(docker)

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