This issue was originally opened by @mwhooker as hashicorp/packer#5409. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
We should set ownership of files based on the container user. In theory, this should be doable with the -a flag to docker cp, but there's a bug that prevents that. When https://github.com/moby/moby/issues/34142 is fixed, let's change docker cp to be docker cp -a
This issue was originally opened by @mwhooker as hashicorp/packer#5409. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
We should set ownership of files based on the container user. In theory, this should be doable with the
-a
flag todocker cp
, but there's a bug that prevents that. When https://github.com/moby/moby/issues/34142 is fixed, let's changedocker cp
to bedocker cp -a