The Docker Image Built, but the Service Did Not Start
The Docker Image Built, but the Service Did Not Start
A successful build is not a successful runtime deployment. This is part two of the WAB ENGINE and AI Agents programming series, grounded in the V3.4 Testnet experiments.
What the experiment actually showed
The log showed CGO_ENABLED=0 go build completing, followed by container restart loops: port 11434 was already occupied by Ollama and port 7100 by another WAB process.
Engineering method
Separate build verification from bind checks, process ownership and readiness. Use ss, docker ps and docker compose logs before changing the application.
A repeatable local exercise
Repo/port_check.sh provides a read-only Linux check.
Use a recorded JSON response or a mock HTTP server. Run local unit tests, compare actual values with expected values, and inspect error paths. An AI response must not be used as evidence of a wallet transaction or its confirmation.
What can go wrong
Do not delete volumes or stop unknown services to clear a port. First identify the owner.
Practical review questions
- Which facts came directly from WAB ENGINE, and which are generated prose?
- Can the experiment be repeated without broadcasting another transaction?
- What observation would falsify the diagnosis?
- Which error states are visible to the caller rather than hidden by a fallback?
Implementation boundary
WAB ENGINE remains the authoritative execution layer. The experimental agent is a separate client. Examples are intentionally scoped to Testnet and do not modify the Engine, Bitcoin Core, the signed fee law, or deployed wallet state.
Project references
- WAB ENGINE API: https://thamer.org/api
- WAB ENGINE overview: https://thamer.org/engine
- Educational code repository: https://thamer.org/repo/
Scope: experimental Testnet programming notes and preliminary SDK-style examples, not production-ready wallet software.
