Skip to content

fix(docker): make runtime dir creation non-fatal in entrypoint#288

Merged
viettranx merged 1 commit intonextlevelbuilder:mainfrom
thieung:fix/docker-entrypoint-mkdir-permission
Mar 20, 2026
Merged

fix(docker): make runtime dir creation non-fatal in entrypoint#288
viettranx merged 1 commit intonextlevelbuilder:mainfrom
thieung:fix/docker-entrypoint-mkdir-permission

Conversation

@thieung
Copy link
Contributor

@thieung thieung commented Mar 19, 2026

Summary

  • Make mkdir -p calls for .runtime subdirectories non-fatal (|| true) in docker-entrypoint.sh
  • Fixes first-run restart loop caused by volume initialisation race condition on fresh Docker volumes

Test plan

  • make env-docker with fresh volume — no restart loop, gateway healthy on first attempt
  • All 3 services (gateway, web UI, Dozzle) return HTTP 200
  • Cleanup with make env-down-docker works cleanly

On first start with a fresh Docker volume, mkdir for .runtime
subdirectories can fail due to a volume initialisation race condition,
causing the container to restart loop. The directories are only needed
for agent-installed packages (pip/npm), so the failure is non-fatal.
@viettranx viettranx merged commit 7f1f126 into nextlevelbuilder:main Mar 20, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants