Configure workspace provisioning
Automatically provision default Docker or Kubernetes sandbox templates and pre-configured resources whenever a new Service workspace is created.
Use this deployment recipe to create default Local or Docker execution resources for workspaces. Automatic provisioning runs only in the all role; split control and worker deployments configure resources explicitly. Set up Engine access before enabling Docker provisioning, and verify an actual environment after the resources are created.
Workspace provisioning
Automatic Local/Docker provider and template creation runs only in the all role. Both are disabled in generic settings; the supplied socket-enabled Compose stack enables Docker and leaves Local off. Split control/worker deployments configure execution resources explicitly.
For Docker initialization, grant the Service process access to the intended Engine, through environments.docker_host or its Docker environment. A CLI installation alone gives no Engine access. Then enable:
[provisioning.docker]
enabled = trueThe default template uses Service's reviewed sandbox image and pull_policy = "if_missing". Provisioning registers the default provider and template metadata at workspace creation; images are pulled and containers start when an environment instance is launched. The image is pulled when an instance needs it. Later setting changes do not overwrite existing templates: edit those in Console or through the API. Existing instances keep their image.
For a locally built image in a repository checkout:
- Run
make image-sandboxfrom the repository root. - Save this override as
compose.local.yamlin that root:
services:
service:
environment:
A13N_PROVISIONING__DOCKER: '{"enabled":true,"image":"a13n-sandbox:local","pull_policy":"never"}'- Start the stack with both files:
docker compose -f deploy/docker/compose/a13n-service.yaml -f compose.local.yaml up -d --waitFor direct TOML deployment, put the same image and pull_policy fields in [provisioning.docker]. Use if_missing for registry images. Environment overrides replace the complete JSON object; the old A13N_DOCKER_ENVIRONMENT_IMAGE shortcut is no longer read.
For Local execution in a development deployment only, enable it with an explicit absolute root:
[provisioning.local]
enabled = true
root = "/srv/a13n/environments"Local executes directly on the worker host without isolation. Disabling it preserves directories and resources but makes Local unavailable for subsequent execution. Docker provisioning disablement leaves manually configured Docker providers usable. See workspace provisioning for retry and ownership behavior.