Repository navigation
feat(docker): warn when Docker, Compose or the daemon is not available - #21
Merged
nabil1440 merged 1 commit intoSep 22, 2026
Merged
Conversation
- docker.Check examines the Docker CLI (PATH), the Compose plugin (docker compose version) and the daemon (docker version), with a 5 s timeout for each check. - Commands that need Docker declare it with requireDocker. The root command runs the check first. If a part is not available, fly shows one warning line and exits with status 69 (EX_UNAVAILABLE). - fly status shows the three parts on separate lines and exits 0. Closes #5
nabil1440
force-pushed
the
blockers/5-docker-availability
branch
from
September 22, 2026 06:36
62b5965 to
b278401
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.
Change
docker.Checkexamines three parts, each with a 5 s timeout:PATH)docker compose version --short)docker version --format {{.Server.Version}})requireDocker. The root command runs the check before these commands.flyshows one warning line and exits with status 69 (EX_UNAVAILABLE). No command panics, and no rawexec:error shows.fly statusshows the three parts on separate lines and exits with status 0.Why this design
requireDockermarks the commands that need Docker. The capability work can use the same mark to set the Docker capability online or offline.Tests
Check: available, no CLI, no Compose plugin, daemon down and daemon timeout. Unit tests forStatus.fly statusgives exit status 0 and three lines.fly statusshows the three parts.DOCKER_HOSTset to a socket that does not exist,fly startshows the daemon warning and exits with status 69.dockerinPATH,fly wpshows the CLI warning and exits with status 69.Closes #5