Expand description
Docker resource naming for optional sandbox profile isolation.
Legacy behavior uses shared resource names (opencode-cloud-sandbox, latest, etc.).
When OPENCODE_SANDBOX_INSTANCE is set to a valid instance ID, names are derived with
profile-specific suffixes/tags so concurrent worktrees can run independently.
Structs§
Constants§
- INSTANCE_
LABEL_ KEY - Container and volume label key identifying the active instance.
- SANDBOX_
INSTANCE_ ENV - Environment variable carrying the active sandbox instance id.
Functions§
- active_
resource_ names - Resolve active resource names from
OPENCODE_SANDBOX_INSTANCE. - env_
instance_ id - Read and validate sandbox instance from environment.
- remap_
container_ name - Remap legacy container name to active profile container name.
- remap_
image_ tag - Remap legacy image tags to active profile tags.
- resource_
names_ for_ instance - Resolve resource names for an optional instance id.