Failed to upload to 'xxx' in container: Error response from daemon: Error processing tar file(exit status 1): chtimes <yyy>: no such file or directory #10
This issue was originally opened by @brikis98 as hashicorp/packer#6103. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
I have a Packer template that I'm using to build Docker images. Here's the rough idea of what the template looks like:
When I run packer build locally (on my Mac), the Docker container builds just fine. However, when I run my automated tests in CircleCI, which also call packer build, I see an error like this:
Failed to upload to '/tmp' in container: Error response from daemon: Error processing tar file(exit status 1): chtimes /my-folder-name/_docs: no such file or directory
The /my-folder-name/_docs folder definitely exists. The exact file/folder it fails on seems to change from run to run.
A few key notes:
I was originally running Packer builds in parallel, so I tried setting different PACKER_TMP_DIR values for each one. However, that didn't help, and upon further testing, the error happens even if the builds run sequentially.
This issue was originally opened by @brikis98 as hashicorp/packer#6103. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
I have a Packer template that I'm using to build Docker images. Here's the rough idea of what the template looks like:
When I run
packer build
locally (on my Mac), the Docker container builds just fine. However, when I run my automated tests in CircleCI, which also callpacker build
, I see an error like this:The
/my-folder-name/_docs
folder definitely exists. The exact file/folder it fails on seems to change from run to run.A few key notes: