Expand description
Host management module
Provides functionality for managing remote Docker hosts:
- Host configuration schema and storage
- SSH tunnel management for remote Docker access
- Connection testing and validation
- SSH config file parsing and writing
- Remote Docker provisioning
Structs§
- Distro
Info - Detected distribution information
- Host
Config - Configuration for a remote host
- Hosts
File - Root structure for hosts.json file
- SshConfig
Match - Settings found in user’s SSH config for a host
- SshTunnel
- SSH tunnel to a remote Docker daemon
Enums§
- Distro
Family - Linux distribution family
- Host
Error - Errors that can occur during host operations
Functions§
- detect_
distro - Detect the Linux distribution on a remote host
- get_
docker_ install_ commands - Install Docker on a remote host
- get_
ssh_ config_ path - Get the path to the user’s SSH config file
- host_
exists_ in_ ssh_ config - Check if a host alias already exists in SSH config
- install_
docker - Execute Docker installation on remote host
- load_
hosts - Load hosts configuration from hosts.json
- query_
ssh_ config - Parse user’s SSH config and query for a hostname
- save_
hosts - Save hosts configuration to hosts.json
- test_
connection - Test SSH connection to a host
- verify_
docker_ installed - Verify Docker is working after installation
- write_
ssh_ config_ entry - Write a new host entry to the user’s SSH config file