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>
30 lines
2.0 KiB
Plaintext
30 lines
2.0 KiB
Plaintext
Usage: floci start [-hqvV] [--detach] [--json] [--no-color] [--no-emoji] [--container=<name>]
|
|
[--endpoint=<url>] [--image=<ref>] [--namespace=<name>] [-o=text|json|yaml]
|
|
[--persist=<dir>] [--port=<port>] [--profile=<name>]
|
|
[--pull=always|missing|never] [--services=<csv>] [--security-opt=<opt>]...
|
|
Start the Floci AWS emulator container
|
|
--container=<name> Floci container name (default: floci)
|
|
--detach Return immediately without waiting for readiness
|
|
--endpoint=<url> Floci server endpoint URL (default: http://localhost:4566)
|
|
-h, --help Show this help message and exit.
|
|
--image=<ref> Image reference to use (default: floci/floci:latest)
|
|
--json Shorthand for --output json
|
|
--namespace=<name> Docker resource namespace for the containers this instance launches
|
|
(default: derived from --container; none for the default container)
|
|
--no-color Disable ANSI colors
|
|
--no-emoji Plain ASCII marks instead of Unicode ones (the default when output is
|
|
piped)
|
|
-o, --output=text|json|yaml
|
|
Output format: text, json, yaml
|
|
--persist=<dir> Host directory for persistent state
|
|
--port=<port> Host port to bind (default: 4566)
|
|
--profile=<name> Config profile from ~/.floci/profiles/
|
|
--pull=always|missing|never
|
|
Image pull policy: always, missing, never
|
|
-q, --quiet Suppress non-error output
|
|
--security-opt=<opt> Docker security option for the emulator container, repeatable
|
|
(label=disable lets it reach the Docker socket on SELinux hosts)
|
|
--services=<csv> Comma-separated list of services to enable
|
|
-v, --verbose Debug logging to stderr
|
|
-V, --version Print version information and exit.
|