feat(docker): ask rootlesskit where a rootless daemon publishes ports #86

Merged
mi merged 2 commits from mihoe/rootlesskit-host-override into main 2026-10-01 11:59:08 +02:00
Owner

With the slirp4netns port driver a rootless daemon publishes ports on
its child address only, not on localhost. Werkator now asks rootlesskit
(GET /v1/info on dockerd-rootless/api.sock) before every Docker build
and passes that address as TESTCONTAINERS_HOST_OVERRIDE, in both network
modes; the builtin driver keeps the defaults. A daemon switched between
drivers needs no configuration change. docker.env still wins.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

With the slirp4netns port driver a rootless daemon publishes ports on its child address only, not on localhost. Werkator now asks rootlesskit (GET /v1/info on dockerd-rootless/api.sock) before every Docker build and passes that address as TESTCONTAINERS_HOST_OVERRIDE, in both network modes; the builtin driver keeps the defaults. A daemon switched between drivers needs no configuration change. docker.env still wins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mi added 1 commit 2026-10-01 11:27:14 +02:00
With the slirp4netns port driver a rootless daemon publishes ports on
its child address only, not on localhost. Werkator now asks rootlesskit
(GET /v1/info on dockerd-rootless/api.sock) before every Docker build
and passes that address as TESTCONTAINERS_HOST_OVERRIDE, in both network
modes; the builtin driver keeps the defaults. A daemon switched between
drivers needs no configuration change. docker.env still wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mi added 1 commit 2026-10-01 11:27:57 +02:00
Assign rootlesskit documentation to PR #86
werkator build succeeded after 02:13
248652402c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mi merged commit b37855e04a into main 2026-10-01 11:59:08 +02:00
mi deleted branch mihoe/rootlesskit-host-override 2026-10-01 11:59:08 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mi/werkator#86