Expand description
Bind mount parsing and validation for container configuration.
This module provides functionality to:
- Parse mount strings in Docker format (
/host:/container[:ro|rw]) - Validate mount paths (existence, type, permissions)
- Convert parsed mounts to Bollard’s Mount type for Docker API
- Warn about potentially dangerous container mount points
Structs§
- Parsed
Mount - A parsed bind mount specification.
Enums§
- Mount
Error - Errors that can occur during mount parsing and validation.
Functions§
- check_
container_ path_ warning - Check if mounting to a container path might be dangerous.
- validate_
mount_ path - Validate that a mount host path exists and is accessible.