general/other How to enable podman socket on FreeBSD?

Hi,

I am trying to set up podman on FreeBSD 14.2, and I am wondering how to enable the podman socket (/var/run/podman/podman.sock) so that I can manage containers remotely. All the tutorials I found describe how to do this on Linux systems (i.e. use systemd to create and manage the socket), but how is this done on FreeBSD? The how-tos for FreeBSD all stop once you have podman running and only show how to locally create containers and fetch images. Is it possible to enable the podman socket on FreeBSD (and if so, how is this done?), or is this something that will be available in a later version of the port?

Thanks,
Christoph
 
I got this working by enabling the podman_service service and setting the socket path in its command line arguments:

sh:
sysrc podman_service_enable=YES
sysrc podman_service_flags="unix:///var/run/podman/podman.sock --time 0"
service podman_service start
 
This is not 100% correct; podman_service will only start with:

sh:
sysrc podman_service_flags="--time 0"

But with this, there is a .sock in /var/run/podman
:)
 
Back
Top