Open strzinek opened 3 weeks ago
same error also appears when using podlet generate pod pod_id
command.
$ podlet generate pod c4a2
Error:
0: error creating Quadlet file(s) from an existing object
1: error parsing `podman pod create` command from `["podman", "pod", "create", "--name", "db0", "--publish", "8080:80", "--publish", "3306:3306"]`
2: error: unexpected argument '--name' found
tip: to pass '--name' as a value, use '-- --name'
2: Usage: create [OPTIONS] <NAME>
For more information, try '--help'.
2:
Location:
src/cli/generate.rs:277
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
error only occurs if pod is created with --name
flag. podman pod create --publish 8080:80 --publish 3306:3306 db0
command works fine, however it is supposed to work even with the --name
flag, right?
Running into the same problem. Or rather, the pod has a different name when started via systemd than what it was created with. Thus, all container units that were built by podlet with -pod $NAME
suddenly point to the wrong name.
When invoking the
podlet podman pod create --name test
, which is the first example ofpodman pod create
usage in the official podman documentation, the command fails with an error in the title.