mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
* feat(start): add --security-opt so Floci can reach the socket on SELinux hosts With SELinux enforcing, as in the podman machine VM, the emulator cannot connect to the mounted Podman socket: the kernel denies connectto from container_t to the daemon's container_runtime_t, and the web console fails with java.net.BindException: Permission denied. Relabeling the mount with :z fixes access to the socket file but not that check. --security-opt label=disable gets past it, and start had no way to pass it. The option is repeatable and goes to docker run unchanged. A restart without --profile reads it back from the running container, like the port, image and services; with --profile the start is rebuilt from the profile, which has no key for it. docker inspect reports a seccomp profile file inline, which docker run rejects, so such a value fails start's validation, and with it the restart, before the stop removes the container. Signed-off-by: soreavis <263610811+soreavis@users.noreply.github.com> * fix(start): keep --security-opt in retry and recovery commands The failed-pull hint and the restart recovery command rebuild the start from its flags, so they dropped --security-opt and a retry lost label=disable. Carry it into both, shell-quoted. The README's profile workaround stopped the default instance: name the same profile and product on stop as on start. Signed-off-by: soreavis <263610811+soreavis@users.noreply.github.com> --------- Signed-off-by: soreavis <263610811+soreavis@users.noreply.github.com>