Open akanix42 opened 1 year ago
A friendly reminder that this issue had no activity for 30 days.
Thanks for reaching out, @akanix42! And sorry for the silence. This issue must have fallen under the radar.
@flouthoc can you take a look?
Seems like a race, let me take a look. Thanks.
@akanix42 This happens in a single multi-stage build or which multiple builds running in parallel ?
@flouthoc It's a single multi-stage build; there are no other builds running concurrently
Issue Description
I have various statements in a multistage build Dockerfile to copy multiple files in from other images using
rsync
to merge them with existing subdirectories, here's an example:This worked great with docker, but with podman these statements fail most of the time with the following error:
This has been plaguing me for weeks now and I just got the idea to try building with
--jobs 1
instead of--jobs 0
, which seems to have resolved it for now, but of course I'd prefer to have parallel builds. Without that, I simply have to keep running the job in a loop until it eventually gets lucky and succeeds, so it seems to be some sort of race condition.Steps to reproduce the issue
I haven't yet had the time to create a simple reproducible error, but I wanted to report the bug anyway in case there was something that could be done about it before I have the time to do so. My guess is that it has to do with having multiple
RUN --mount
commands running at the same time.Describe the results you received
Intermittent failed build to a permission issue.
Describe the results you expected
Successful build, no errors.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Running on an M1 macbook with MacOS 13.2.1.
Additional information
The issue happens the majority of the time but eventually succeeds.