Skip to main content
A sandbox can restart repeatedly when its entrypoint.sh script cannot start the sandbox API. The usual causes are a missing netcat package or failed localhost resolution in a Debian-based image.

Remove the entrypoint script

If you do not need custom initialization, remove entrypoint.sh and start the sandbox API directly:
Remove the custom entrypoint instructions:

Fix the entrypoint script

If you need custom initialization, install netcat-openbsd in the Dockerfile:
Then replace localhost with 127.0.0.1 in the port check:
Debian-based images do not always resolve localhost automatically. Use 127.0.0.1 for local connections in these images.

Inspect sandbox logs

Check the console logs for errors from the entrypoint script:

Sandbox processes

Learn how to start and manage sandbox processes.

Docker sandbox tutorial

Learn how to configure Docker workloads in sandboxes.
Last modified on October 5, 2026