tech:pb_podman
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:pb_podman [2026/05/28 18:09] – Jean-Baptiste | tech:pb_podman [2026/09/04 10:00] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag>Pb podman Rootless LDAP}} | ||
| + | |||
| + | # Pb Podman | ||
| + | |||
| + | |||
| + | Voir aussi : | ||
| + | * / | ||
| + | |||
| + | |||
| + | ## Err ldap - no subuid | ||
| + | |||
| + | Podman userland avec LDAP | ||
| + | ~~~ | ||
| + | $ podman ps | ||
| + | ERRO[0000] cannot find UID/GID for user user1@acme.local: | ||
| + | WARN[0000] Using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids if not using a network user | ||
| + | CONTAINER ID IMAGE | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Solution | ||
| + | |||
| + | ~~~bash | ||
| + | #echo "$(id -un):$(id -u): | ||
| + | #echo "$(id -gn):$(id -g): | ||
| + | |||
| + | sudo usermod --add-subuids "$(id -u)-$(( $(id -u) + 65535))" | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Err Failed to get rootless runtime dir for DefaultAPIAddress: | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | |||
| + | ~~~ | ||
| + | $ podman ps | ||
| + | WARN[0000] Failed to get rootless runtime dir for DefaultAPIAddress: | ||
| + | WARN[0000] RunRoot is pointing to a path (/ | ||
| + | Error: default OCI runtime " | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | sudo mkdir / | ||
| + | sudo chown 1000:1000 / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~ | ||
| + | $ podman ps | ||
| + | WARN[0001] "/" | ||
| + | WARN[0001] The cgroupv2 manager is set to systemd but there is no systemd user session available | ||
| + | WARN[0001] For using systemd, you may need to log in using a user session | ||
| + | WARN[0001] Alternatively, | ||
| + | WARN[0001] Falling back to --cgroup-manager=cgroupfs | ||
| + | CONTAINER ID IMAGE | ||
| + | WARN[0003] Failed to add pause process to systemd sandbox cgroup: dial unix / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | mount --make-shared / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ podman ps | ||
| + | WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user | ||
| + | WARN[0000] For using systemd, you may need to log in using a user session | ||
| + | WARN[0000] Alternatively, | ||
| + | WARN[0000] Falling back to --cgroup-manager=cgroupfs | ||
| + | CONTAINER ID IMAGE | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Solution | ||
| + | |||
| + | ~~~bash | ||
| + | sudo loginctl enable-linger management | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ podman ps | ||
| + | ERRO[0001] Refreshing container 95cfa640ab028aed83857a9288956d4aff585eb863e8041a737d4be9f98b64df: | ||
| + | ERRO[0001] Refreshing container 76f17f10362a77c722eb00dff478e2f1245a4860a6b11f7cdb4b2e42d3ae80f7: | ||
| + | ERRO[0001] Refreshing volume b7fa2f4a2f95a538232ec51f0ff6defc3613a6568fd2dedef13d1bd6f1113ee2: | ||
| + | CONTAINER ID IMAGE | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~ | ||
| + | $ podman ps | ||
| + | CONTAINER ID IMAGE | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Autre solution à tester | ||
| + | |||
| + | `${HOME}/ | ||
| + | ~~~ini | ||
| + | [engine] | ||
| + | events_logger = " | ||
| + | cgroup_manager = " | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Err Error: initializing source - manifest unknown | ||
| + | |||
| + | Voir aussi : | ||
| + | * https:// | ||
| + | |||
| + | ~~~ | ||
| + | $ podman pull docker.io/ | ||
| + | Trying to pull docker.io/ | ||
| + | Error: initializing source docker:// | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Solution | ||
| + | |||
| + | Il manquait le tag | ||
| + | |||
| + | ~~~ | ||
| + | $ podman search --list-tags docker.io/ | ||
| + | NAME TAG | ||
| + | docker.io/ | ||
| + | docker.io/ | ||
| + | docker.io/ | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | podman pull docker.io/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | FIXME | ||
| + | |||
