* 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>
* docs: add an exit-code table and generated --help snapshots
README gains the exit codes scripts can rely on, per command. docs/help holds the --help text of every command in every tree, and HelpSnapshotTest fails when the files and the commands drift apart.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* docs: say which rejected values exit 1 and pin the documented exit codes with a test
The table promised 2 for every unusable value, but three commands report a rejected value with 1. The wording is narrowed, the three are named, and ExitCodeTableTest pins the rows that need neither Docker nor a server.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* test: keep the exit-code test off the developer's saved profiles
The profile commands build their own store under the home directory, so the test now runs with a temporary home.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
---------
Signed-off-by: Hector Ventura <hectorvent@gmail.com>