podman generate systemd
would create ill systemd unit files if using =
in the --pod flag
#6766
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The
podman generate systemd
would create ill systemd unit files if I use=
in the --pod flag.Steps to reproduce the issue:
podman generate systemd
will generate a systems unit file with this content:It uses
--pod-id-file
and--pod
at the same time when running the podman.Describe the results you received:
When running these generated systems unit files, the podman will show
Cannot specify both --pod and --pod-id-file
error and exit because of this: https://github.com/containers/libpod/blob/2df3faab7b2801cc2e3c2291b618ae530223329d/cmd/podman/common/specgen.go#L259Describe the results you expected:
We can run this generated systems unit files without any problem.
Additional information you deem important (e.g. issue happens only occasionally):
If I use the following commands, the
podman generate systemd
will generate the correct systemd unit files.Output of
podman version
:The text was updated successfully, but these errors were encountered: