Closed defanator closed 1 year ago
Looks similar to this one https://github.com/containers/buildah/pull/4452, I'll create a PR for this.
Hi @defanator , Thanks for the reporting the issue i was able to recreate it from the reproducer shared and I have created a PR https://github.com/containers/buildah/pull/4509 which should close this.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Building a container from Dockerfile with
WORKDIR
+ using--mount=type=secret
with relative destination path leads to inconsistent behavior.Steps to reproduce the issue:
Dockerfile:
Makefile:
DOCKER=podman make
.Describe the results you received:
Secrets are being created in
/
, while commands are being executed under/somedir
:Describe the results you expected:
Successful build + run with secrets created in
/somedir
:Running
podman
withWORKDIR
commented in Dockerfile works:Obviously, using absolute paths both in mount
dst=
option and after in commands also works.Additional information you deem important (e.g. issue happens only occasionally):
100% reproducible, tested in root-less mode only.
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
OS details: