FreeBSD users now have an additional option to install Podman, a popular Linux container-building and running tool, which is now available for FreeBSD 14.2.
Podman can restart containers after a host is rebooted.
To enable this on FreeBSD, mount the fdescfs file system and create a container network configuration.
Users can also run many Linux container images using FreeBSD’s Linux emulation feature.
The FreeBSD port of the Podman container engine is experimental and should only be used for evaluation and testing purposes.
Podman can be installed using a binary package or from the ports collection.
To start containers with a restart policy, use the command: $ sudo podman run -d --restart=always myimage.
To search for container images using Podman, users first need to define container registries by adding a registry to “/usr/local/etc/containers/registries.conf”.
Once a registry is defined, users can search for container images using Podman and run them on FreeBSD.
Running Linux containers on FreeBSD gives users another option in the FreeBSD world and expands the choices for where to run containers.