Skip to main content

Module mount

Module mount 

Source
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§

ParsedMount
A parsed bind mount specification.

Enums§

MountError
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.