quadlet fails to handle quoting properly in .container
files
#20992
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
quadlet
stale-issue
Issue Description
After upgrading to Podman 4.6.2 on Ubuntu 22 and creating a
.container
file,podman-run
would fail with errors like:with ""Unmounting .../merged invalid argument" and Error: mounting storage for container ...: creating overlay mount to ...: permission denied
By looking closely at the Quadlet
-dryrun
output, I noticed that quoting had not been handled properly in the.container
file-- It should be handled like systemd handles it and allow values to be quoted. Instead, both the container name and image name were generated such that the double quotes were expected to be actually part of the image and container name.Podman should either throw an error about this during
-dryrun
, or even better: Allow values to be quoted like systemd does.Although we are not using the most recent version of Podman, I see no issues suggesting that the issue has been identified and fixed already.
Steps to reproduce the issue
Steps to reproduce the issue
.container
file and quote the values forContainerName=
andImageName=
quadlet -dryrun
Describe the results you received
/usr/bin/podman run "--name="pdf-render-dev"" ... ""localhost/pdf-render-dev""
Describe the results you expected
/usr/bin/podman run "--name=pdf-render-dev ... localhost/pdf-render-dev
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: