Commands
Docker Machine Commands
Docker Machine has multiple commands in order to manage a machine.
For more available options to manage a Docker Machine, use docker-machine help
.
Rancher Machine Commands
If you are using Ionos Cloud Docker Machine Driver with Rancher Machine, use rancher-machine help
to see the available commands.
Examples
List Machines
To list the machines you have created, use the command:
It will return information about your machines, similar to this:
Start a Machine
To start a Docker Machine, run:
Expected output:
Stop a Machine
To stop a Docker Machine, run:
Expected output:
Restart a Machine
To restart a Docker Machine, run:
Expected output:
Get Status
To get the status of a Docker Machine created, run:
Remove a Machine
To remove a Docker Machine and all the resources associated with it, run:
It should produce results similar to this:
The remove command can also be used with --force
or -f
flag.
Last updated