containers / containers/podlet

how does one run from container successfully?

Open
#149 4 comments 4 reactions 1 assignee Claimed by @TheRealBecks View on GitHub
question
Dominant language
Rust
Stars
1.6k
Forks
48
Avg merge
1d 9h
Merged PRs (30d)
1

Description

Running on a arm64 linux system, the container pulls and runs successfully, however, trying to generate a quadlet from a running pod and it is resulting in the error.
I was wondering how it would access the pod info from the host from within the container so I am not
surprised to get this error, reading through the docs, did i miss something?

command ->

```
podman run -it --rm --userns keep-id -e HOME -e XDG_CONFIG_HOME --user $(id -u) -v "$PWD":"$PWD" -v "$HOME/.config/containers/systemd/":"$HOME/.config/containers/systemd/" -w "$PWD" --security-opt label=disable --pull=newer ghcr.io/containers/podlet generate pod quote_pod
```

```
Error:
0: error creating Quadlet file(s) from an existing object
1: error inspecting pod `quote_pod`
2: error running `podman pod inspect quote_pod`
3: No such file or directory (os error 2)

Location:
src/cli/generate.rs:726

PATH:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Note: ensure Podman is installed and available on $PATH

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.