hashicorp / packer-plugin-docker

Packer plugin for Docker Builder
https://www.packer.io/docs/builders/docker
Mozilla Public License 2.0
30 stars 26 forks source link

builder/docker: upload files with `-a` flag when upstream bug is fixed #14

Open ghost opened 3 years ago

ghost commented 3 years ago

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