-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using docker build
with secrets backed by a Podman controlled docker.sock fails on macOS
#14615
Comments
Hi @jimeh, Thanks for creating the issue. It works with Unfortunately docker does not provides any public API for passing secrets to I am not sure if there is any right solution to this unless docker decides to create an API for this and docker-cli starts using it. |
@flouthoc Ah, interesting. I assume then that attempting to implement full |
@jimeh Yeah I am not sure what should be done here but looks like this will be on hold till then. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
This is something which cannot be implemented till docker releases public API, closing this as WONTFIX but please feel free to continue discussion below and we can reopen this if in case docker creates public API for this. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
docker build
commands which uses secrets fail, while the equivalentpodman build
command works just fine.I'm on macOS and using the
podman-mac-helper
to have Podman take over the default Docker socket, allowing the normaldocker
CLI to be used with Podman.Steps to reproduce the issue:
docker
CLI work with Podman:Dockerfile
:my-secret.txt
:podman build --secret "id=my_secret,src=$(pwd)/my-secret.txt" .
which yields a successful build:docker build --secret "id=my_secret,src=$(pwd)/my-secret.txt" .
which yields failures to read the mounted secret files:Describe the results you received:
Mounted build secrets do not exist within the build container when using
docker build
, while usingpodman build
it works fine.Describe the results you expected:
Using
docker build
backed by a docker.sock controlled by Podman, I expected mounting build secrets to work.Additional information you deem important (e.g. issue happens only occasionally):
I'm running macOS 12.4 (21F79), on a 2020 Intel-based MacBook Pro.
Output of
podman version
:(I did just create a new podman machine a few minutes ago, I assume 4.1.1 is not available yet)
Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Output from
brew info podman
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
For this issue, I created a new Podman machine called
foo
to check if I could get Podman 4.1.1 in the machine, but have the same issues with the defaultpodman-machine-default
machine too.podman machine inspect
yields:The text was updated successfully, but these errors were encountered: