docker-sbx fixes from the first real deployment - #13
Merged
Conversation
Owner
Author
|
End-to-end results from the deployment host (Ubuntu 24.04, Exoscale, nested KVM, sbx v0.38.0, this branch):
Two observations for follow-up issues:
|
Owner
Author
|
Follow-up 1 from the comment above is now fixed in this PR (da90605): the provider owns its /doctor probe time limit, the same ownership pattern as |
czpython
force-pushed
the
fix-docker-sbx-publish
branch
from
August 19, 2026 11:00
0fc580e to
8559c6a
Compare
czpython
force-pushed
the
fix-docker-sbx-publish
branch
from
August 20, 2026 08:56
8559c6a to
da90605
Compare
Publish SSH on a loopback port that the daemon selects, make /run/sshd at entrypoint start, document sbx template load for local templates, and let each provider own its /doctor probe time limit.
czpython
force-pushed
the
fix-docker-sbx-publish
branch
from
August 20, 2026 08:58
da90605 to
3b6cd25
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deployment tests on a real host (Ubuntu 24.04, sbx v0.38.0) found three problems. This PR fixes them.
Problems and fixes
--publish IP::22and port 0: it cannot select a free port on an explicit address. The provider now publishes with a bare22. The daemon then selects a free loopback port. The provider always returns127.0.0.1as the SSH host, the same as thedockerprovider. TheDOCKER_SBX_ADVERTISE_HOSTsetting is removed. A drukbox container reaches the sandboxes through host networking, which the documented recipe already uses./run/sshdonly at image build./runis a fresh tmpfs at start, thus sshd found no privilege-separation directory and stopped. The entrypoint now makes the directory at start. Plaindocker runhid this problem because Docker keeps the image's/runcontent.docs/deploy.mdnow shows the required steps:docker saveandsbx template load.Verification
uv run ruff check/format --check: passuv run pyright: 0 errorsuv run pytest: 381 tests pass