Skip to main content

Module volume

Module volume 

Source
Expand description

Docker volume management

This module provides functions to create and manage Docker volumes for persistent storage across container restarts.

Constants§

MOUNT_CONFIG
Mount point for configuration inside container
MOUNT_PROJECTS
Mount point for project files inside container
MOUNT_SESSION
Mount point for session history inside container
VOLUME_CONFIG
Volume name for opencode configuration
VOLUME_NAMES
All volume names as array for iteration
VOLUME_PROJECTS
Volume name for project files
VOLUME_SESSION
Volume name for opencode session history

Functions§

ensure_volumes_exist
Ensure all required volumes exist
remove_all_volumes
Remove all opencode-cloud volumes
remove_volume
Remove a volume
volume_exists
Check if a specific volume exists