Bug: podman generate systemd defines multiple "-d" #8847
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
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
Podman generates multiple
-d
paramater in the created output ofpodman generate systemd <container>
, when -dt is already defined.Steps to reproduce the issue:
podman run -dt --name web01 httpd:2
podman generate systemd --new web01
Describe the results you received:
Check the
ExecStart=
Part in the below code. it has an additional-d
Describe the results you expected:
Shorthandles from
podman run
are expanded to long handles (-e = --env, -d = --detach, etc.) and duplicates are avoided or removed.Additional information you deem important (e.g. issue happens only occasionally):
Does not occure if only
-d
is given during run.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: