-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Docker APIv2 /commit
ignores uploaded config
#13770
Comments
/kind bug |
/cc @jwhonce |
The endpoint loads container state including config from DB. The config from request body is ignored. |
/commit
endpoint is not updating Cmd
of container/commit
endpoint is not updating Cmd
of image
Thanks for reaching out, @matejvasek. Do you have cycles to open a PR? |
@vrothberg I don't know how to fix this from top of my head. |
The container structure is pretty much immutable so I cannot easily overwrite fields in the ctr config. |
Apologies, I do not have time to look into the issue at the moment. |
A friendly reminder that this issue had no activity for 30 days. |
Workaround a bug in podman: containers/podman#13770 Signed-off-by: Matej Vasek <[email protected]>
Workaround a bug in podman: containers/podman#13770 Signed-off-by: Matej Vasek <[email protected]>
Workaround a bug in podman: containers/podman#13770 Signed-off-by: Matej Vasek <[email protected]>
Workaround a bug in podman: containers/podman#13770 Signed-off-by: Matej Vasek <[email protected]>
Workaround a bug in podman: containers/podman#13770 Signed-off-by: Matej Vasek <[email protected]>
Workaround a bug in podman: containers/podman#13770 Signed-off-by: Matej Vasek <[email protected]>
@matejvasek is this still an issue. It got lost because the stale-issue flag was set and no one noticed, so it was lost in the flood of issues. |
@rhatdan I don't know. I just decided not to use this this endpoint. |
I'll take a look now. |
/commit
endpoint is not updating Cmd
of image/commit
ignores uploaded config
Works with changes on my end:
What does not work though - as implied above - is that the compat endpoint entirely ignores the upload container config, see https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageCommit. |
OK, I do not have enough time to tackle it but I can propose a solution. We can extend libpod's |
As consequence the
s2i
utility is not working withpodman
when used as adocker
daemon,because resulting image has incorrect
Cmd
.Related to openshift/source-to-image#1082
The text was updated successfully, but these errors were encountered: