Configuration for each project using a simple YAML file.
The docker remote command reads the relative local file docker-remote.yml to access docker hosts.
Uses SSH under the hood.
Showing remote running containers
docker remote remote-hostname ps
docker remote root@remote-hostname ps
version: "1"
remotes:
- name: remote-hostname
host: 10.20.30.40
user: root
private_key:
file: ~/.ssh/id_rsaThe only required parameters are name and host. Both user and private_key can be omitted to use default system values.
If user is omitted, it will SSH with your local logged in user (like any other SSH connection). You can override it directly using the user@host format (i.e. desired_user@remote-hostname).