podlet icon indicating copy to clipboard operation
podlet copied to clipboard

podlet generate pod fails with: error: unexpected argument '--infra-conmon-pidfile' found

Open Vertux opened this issue 10 months ago • 0 comments

The pod pod_searxng was created with: podman-compose --pod-args='--infra=true' up --build

podlet generate pod pod_searxng

Error:
   0: error creating Quadlet file(s) from an existing object
   1: error parsing `podman pod create` command from `["/usr/bin/podman", "pod", "create", "--infra-conmon-pidfile", "/run/user/1000/pod-pod_searxng.pid", "--pod-id-file", "/run/user/1000/pod-pod_searxng.pod-id", "--exit-policy=stop", "--name=pod_searxng", "--infra=true", "--replace"]`
   2: error: unexpected argument '--infra-conmon-pidfile' found

        tip: a similar argument exists: '--infra-command'

   2: Usage: create <--add-host <HOST:IP>|--blkio-weight <WEIGHT>|--blkio-weight-device <DEVICE:WEIGHT>|--cgroup-parent <PATH>|--cpu-shares <SHARES>|--cpus <NUMBER>|--cpuset-cpus <NUMBER>|--cpuset-mems <NODES>|--device <HOST-DEVICE[:CONTAINER-DEVICE][:PERMISSIONS]>|--device-read-bps <PATH:RATE>|--device-write-bps <PATH:RATE>|--dns <IP_ADDRESS>|--dns-option <OPTION>|--dns-search <DOMAIN>|--exit-policy <EXIT_POLICY>|--gidmap <POD_GID:HOST_GID[:AMOUNT]>|--gpus <ENTRY>|--hostname <NAME>|--infra|--infra-command <COMMAND>|--infra-image <IMAGE>|--infra-name <NAME>|--ip <IPV4>|--ip6 <IPV6>|--label <KEY=VALUE>|--label-file <FILE>|--mac-address <ADDRESS>|--memory <NUMBER[UNIT]>|--memory-swap <NUMBER[UNIT]>|--network-alias <ALIAS>|--no-hosts|--pid <PID>|--replace|--restart <POLICY>|--security-opt <OPTION>|--share <NAMESPACE>|--share-parent <SHARE_PARENT>|--shm-size <NUMBER[UNIT]>|--shm-size-systemd <NUMBER[UNIT]>|--subgidname <NAME>|--subuidname <NAME>|--sysctl <NAME=VALUE>|--uidmap <CONTAINER_UID:FROM_UID[:AMOUNT]>|--userns <MODE>|--uts <MODE>|--volumes-from <CONTAINER[:OPTIONS]>> <NAME>

      For more information, try '--help'.
   2:

Location:
   src/cli/generate.rs:277

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: __libc_start_call_main<unknown>
      at <unknown source file>:<unknown line>
   2: __libc_start_main@GLIBC_2.2.5<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.

Vertux avatar Mar 01 '25 14:03 Vertux