Replies: 2 comments 1 reply
-
Maybe you need to enable lingering?
See for example https://github.com/containers/podman/blob/main/troubleshooting.md#17-rootless-containers-exit-once-the-user-session-exits |
Beta Was this translation helpful? Give feedback.
1 reply
-
Do you run something that removes the socket file? systemd will not notice if the socket file is removed and keeps reporting the socket as active. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a set of VMs (all similarly configured with the above) configured for rootless testing of our code. Some of our jobs use
docker compose
and as such we point theDOCKER_HOST
environment variable to the user socket/run/user/7658/podman/podman.sock
. However, there are times where, after runningsystemctl --user enable --now podman.socket
there is no podman directory for this user.podman info
shows:In other environments where things are working,
exists
istrue
.Running
systemctl --user status podman.socket
shows:Pulling containers, etc works fine, but we can't do anything with docker compose without being able to use the listen endpoint.
For grins, we re-imaged this machine and the first run of the job worked fine. The VM was turned off and returned to the pool. The next job run, using the same commands, fails because of the above. Looking for advice on how to troubleshoot this as it has occurred across multiple VM instances now.
One additional data point. Before pulling/running the images/containers, we run
podman system reset -f
prior to ensure everything is clean. Looking at the documentation, it appears this shouldn't be destructive in a way we wouldn't expect. The fact that it ran the first time seems to support this, but it was a recent change that was added and wanted to include that.Beta Was this translation helpful? Give feedback.
All reactions