mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 00:21:51 -05:00
docs(lambda): document Podman rootless support and Runtime API host override (#1340)
Adds a 'Running on Podman (rootless)' section to the Docker configuration docs with the known-working container config, and documents the existing FLOCI_SERVICES_LAMBDA_DOCKER_HOST_OVERRIDE escape hatch for when Runtime API host auto-detection picks an unreachable address. Closes #876
This commit is contained in:
1 parent
022436eaae
commit
3b4e73ca5a
3 files changed
+70
No files matched your search
@@ -120,6 +120,52 @@ Individual services can override the network with their own `docker-network` set
|
||||
!!! tip
|
||||
In Docker Compose, the default network name is `<project-name>_default`. If your compose file is in a directory named `myapp`, the network is `myapp_default`.
|
||||
|
||||
## Running on Podman (rootless)
|
||||
|
||||
Floci runs under rootless Podman, but Podman's network topology needs a few
|
||||
explicit settings that Docker handles automatically. The following configuration
|
||||
is known to work:
|
||||
|
||||
```bash
|
||||
podman network create floci-net
|
||||
|
||||
podman run -d --name floci \
|
||||
--network floci-net \
|
||||
-p 4566:4566 \
|
||||
-v /run/user/$(id -u)/podman/podman.sock:/var/run/docker.sock:Z \
|
||||
-e FLOCI_SERVICES_LAMBDA_DOCKER_NETWORK=floci-net \
|
||||
-e FLOCI_HOSTNAME=floci \
|
||||
floci/floci
|
||||
```
|
||||
|
||||
What each setting does and why it is needed:
|
||||
|
||||
- **Named network (`floci-net`)** — the rootless default bridge does not assign
|
||||
reachable IPs between containers, so spawned Lambda containers cannot reach
|
||||
Floci. Create a named network and put both Floci and its Lambda containers on it.
|
||||
- **`FLOCI_SERVICES_LAMBDA_DOCKER_NETWORK=floci-net`** — makes Floci attach the
|
||||
Lambda containers it spawns to that same named network.
|
||||
- **`FLOCI_HOSTNAME=floci`** — gives Floci a stable name that Lambda containers
|
||||
resolve when calling back to the Runtime API.
|
||||
- **`:Z` on the socket mount** — relabels the Podman socket for SELinux. Without
|
||||
it, Floci fails to talk to the Podman socket and Lambda container creation
|
||||
errors with `java.io.IOException: Broken pipe`.
|
||||
|
||||
!!! tip "When the Runtime API address is still unreachable"
|
||||
On some Podman network topologies the auto-detected Runtime API address
|
||||
(the host/IP Lambda containers use to call back into Floci) is still wrong,
|
||||
and invocations fail with `connect ECONNREFUSED <ip>:9200`. Set the address
|
||||
explicitly to bypass auto-detection:
|
||||
|
||||
```bash
|
||||
FLOCI_SERVICES_LAMBDA_DOCKER_HOST_OVERRIDE=floci
|
||||
```
|
||||
|
||||
This forces every spawned Lambda container to reach the Runtime API at the
|
||||
given host (here the `FLOCI_HOSTNAME` value), skipping Floci's
|
||||
auto-detection entirely. See the [Lambda docs](../services/lambda.md#configuration)
|
||||
for details.
|
||||
|
||||
## Full Reference
|
||||
|
||||
| Environment variable | Default | Description |
|
||||
|
||||
Reference in new issue
Block a user