pub async fn setup_and_start(
client: &DockerClient,
opencode_web_port: Option<u16>,
env_vars: Option<Vec<String>>,
) -> Result<String, DockerError>Expand description
Full setup: ensure volumes exist, create container if needed, start it
This is the primary entry point for starting the opencode service. Returns the container ID on success.
ยงArguments
client- Docker clientopencode_web_port- Port to bind on host for opencode web UI (defaults to OPENCODE_WEB_PORT)env_vars- Additional environment variables (optional)