-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Podman container support? #211
Comments
Can you try setting DOCKER_HOST to Could you also try leaving DOCKER_HOST unset and installing |
Actually, it seems podman does not create a socket per default. IIUC it will be created if you start/enable the Starting it at the system level ( I have no idea if the podman socket is compatible with the docker one and/or if Beszel will work with it: please share your discoveries (sorry for sorta using you as a guinea pig - I am packaging beszel for my distro and I'm not to the point where I can actually run it yet).
|
Podman sock is not compatible. We would need to add a separate implementation for podman. |
The graphs (docker cpu/memory/network) show up with podman (on nixos and tumbleweed - I don't have other distros at hand)...
edit: I am running the agent directly on the host, not as a container |
Oh, interesting! Thanks for proving me wrong! I was looking at the docs for the Libpod API, but apparently there's a Docker compatible API in addition to the Libpod API. I should be able to add an automatic fallback to the podman.sock if docker.sock isn't active. And I'll change the verbiage in the hub to refer to Podman if that's being used instead of Docker. |
0.8.0 will be released soon with better Podman support. If anyone more familiar with Podman has any tips or suggestions for improvement, please let me know. Note that this is currently an either-or situation. You can either use the Podman API or the Docker API, but not both at the same time. If you need both, let me know and I'll add that functionality at some point. Start and enable the Podman APIsystemctl --user enable podman.socket
systemctl --user start podman.socket Restart the agent to allow it to connect. PermissionsYou must run the agent as the same user that runs Podman. Run beszel-agent.service example # User=beszel
User=1000 podman run example podman run -d --name=beszel-agent --network=host --user 1000 -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock -e KEY="..." henrygd/beszel-agent:latest Specifying a different socket pathThe agent checks for the Podman socket at If you need to use a different path, specify it in the |
Would be nice if Podman containers could also be monitored with this.
Thanks!
The text was updated successfully, but these errors were encountered: