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