mirror of
https://git.freebsd.org/ports.git
synced 2025-05-04 23:47:37 -04:00
This also adds a fix for https://github.com/containers/podman/issues/21117 which will be submitted upstream soon (credit to Ben Cooksley from KDE for that one).
35 lines
953 B
Text
35 lines
953 B
Text
[
|
|
{
|
|
type: install
|
|
message: <<EOM
|
|
The FreeBSD port of the Podman container engine is experimental and should be
|
|
used for evaluation and testing purposes only.
|
|
|
|
$ sudo podman run --rm docker.io/dougrabson/hello
|
|
|
|
Podman can restart containers after a host is rebooted. To enable this, use:
|
|
|
|
$ sudo sysrc podman_enable=YES
|
|
|
|
and start the container with a restart policy:
|
|
|
|
$ sudo podman run -d --restart=always myimage
|
|
|
|
It is possible to run many Linux container images using FreeBSD's Linux emulation:
|
|
|
|
$ sudo sysrc linux_enable=YES
|
|
$ sudo service linux start
|
|
$ sudo podman run --rm --os=linux alpine cat /etc/os-release | head -1
|
|
NAME="Alpine Linux"
|
|
EOM
|
|
}
|
|
{
|
|
type: upgrade
|
|
maximum_version: 4.7.1
|
|
message: <<EOM
|
|
In Podman-4.7.0 and later, registry authentication creds moved from
|
|
/run/containers/0/auth.json to /root/.config/containers/auth.json. Either move
|
|
the file to the new location or just re-authenticate to the required registries.
|
|
EOM
|
|
}
|
|
]
|