docker-py icon indicating copy to clipboard operation
docker-py copied to clipboard

Add `copyUIDGID` support for `container.put_archive()`

Open cakedan opened this issue 3 years ago • 0 comments

It should be noted though, it will use the user passed in containers.create()/containers.run() AND the user has to be made on the host machine with the same name/uid or else it'll fail. I ran into this issue while using dind and just added in it's Dockerfile to generate the same user with the same uid. (https://github.com/moby/moby/issues/34142)

User is grabbed here https://github.com/moby/moby/blob/master/pkg/idtools/idtools_unix.go#L102 from the host, so I hope in the future we can send in our own uid:gid.

Fixes #2577

cakedan avatar Feb 23 '23 07:02 cakedan