Images
An image is a reference to a Docker image stored in Modbox. When you provision a sandbox, you specify which image to use. Images can be global defaults (available to all workspaces) or workspace-specific (private to your team).
Pre-built images
Modbox provides a set of global default images:
These appear in your workspace automatically and cannot be deleted.
Bring your own image
You can register any public or private Docker image:
Readiness probe
Modbox knows your sandbox is ready in two ways:
- HTTP probe — set
readiness_portand Modbox will pollGET :{port}/until it returns 2xx - Process probe — if
readiness_portis not set, Modbox checks thatsupervisordis running viapgrep supervisord
Use the HTTP probe for web servers; use the process probe for general-purpose images.
Memory limits
The memory_mb field sets the memory limit for containers using this image. Valid range: 256 MB – 8192 MB.
List images
Update an image
Private registries
To use a private Docker image, first create a registry credential (see Registries), then link it when creating the image:
Modbox will use the stored credentials to pull the image when provisioning sandboxes.