Skip to main content

Module container

Module container 

Source
Expand description

Docker container lifecycle management

This module provides functions to create, start, stop, and remove Docker containers for the opencode-cloud service.

Constants§

CONTAINER_NAME
Default container name
OPENCODE_WEB_PORT
Default port for opencode web UI

Functions§

container_exists
Check if container exists
container_is_running
Check if container is running
container_state
Get container state (running, stopped, etc.)
create_container
Create the opencode container with volume mounts
remove_container
Remove a container
start_container
Start an existing container
stop_container
Stop a running container with graceful shutdown