-
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
"podman commit --change ENTRYPOINT" won't accept '=' character in it #5148
Comments
NOTE: |
@QiWang19 PTAL |
I'll take this one. Confirmed locally, working on it now. |
I think I got this... we left some parsing logic from the old |
#5156 should fix |
The validation logic was failing on properly-formatted changes. There's already validation in Commit itself, so no need to duplicate. Fixes containers#5148 Signed-off-by: Matthew Heon <[email protected]>
The validation logic was failing on properly-formatted changes. There's already validation in Commit itself, so no need to duplicate. Fixes containers#5148 Signed-off-by: Matthew Heon <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When running e.g.
"podman commit --change ENTRYPOINT='my_binary pidfile=xyz.pid' 012abc345def"
the command won't accept '=' character inside the ENTRYPOINT data (in this case "pidfile=xyz.pid")
Nor shell nor exec form accepts the '=' caharcter.
Steps to reproduce the issue:
create commit on which you will run following command
$ podman commit --change='ENTRYPOINT ["my_binary", "pidfile=xyz.pid"]' 123abc456def
Describe the results you received:
$ podman commit --change='ENTRYPOINT ["my_binary", "pidfile_xyz.pid"]' 123abc456def
WORKS
$ podman commit --change='ENTRYPOINT ["my_binary", "pidfile=xyz.pid"]' 123abc456def
Error: invalid syntax for --change: ENTRYPOINT ["my_binary", "pidfile=xyz.pid"]
$ podman commit --change='ENTRYPOINT "my_binary pidfile_xyz.pid"' 123abc456def
WORKS
$ podman commit --change='ENTRYPOINT "my_binary pidfile=xyz.pid"' 123abc456def
Error: invalid syntax for --change: ENTRYPOINT "my_binary pidfile=xyz.pid"
Describe the results you expected:
Even the commands with '=' character will work
Additional information you deem important (e.g. issue happens only occasionally):
100% reproducible
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Physical device, x86_64
The text was updated successfully, but these errors were encountered: