You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ podlet podman run -h foo.local hello-world
Generate a Podman Quadlet `.container` file
Usage: podlet podman run [OPTIONS] <IMAGE> [COMMAND]...
Arguments:
<IMAGE> The image to run in the container
[COMMAND]... Optionally, the command to run in the container
Options:
--cap-add <CAPABILITY> Add Linux capabilities
--device <HOST-DEVICE[:CONTAINER-DEVICE][:PERMISSIONS]> Add a device node from the host into the container
--annotation <KEY=VALUE> Add an annotation to the container
--name <NAME> The (optional) name of the container
--dns <IP_ADDRESS> Set custom DNS servers
--dns-option <OPTION> Set custom DNS options
--dns-search <DOMAIN>
…
Using the —hostname full form makes this work as expected:
The text was updated successfully, but these errors were encountered:
xrisk
changed the title
Using -h short flag for —hostname gives podlet’s help instead of generating the correct quad let
Using -h short flag for —hostname gives podlet’s help instead of generating the correct quadlet
Sep 14, 2024
I'm not sure what the correct solution for this problem is. I think Docker/Podman made a mistake not reserving -h for help. One possibility is to use Command::disable_help_flag() for podlet podman run and add --help back manually, but then how would one get the short help?
Using the
—hostname
full form makes this work as expected:The text was updated successfully, but these errors were encountered: