Docker
Docker Machine
Create a new virtual machine (multi-platform)
Replace
myvm1
with your desired VM name.Create a new virtual machine using Hyper-V on Windows 10 (specify virtual switch)
Replace myswitch
with the actual name of your Hyper-V virtual switch and
myvm1
with your desired VM name.
View information about a VM
Replace
myvm1
with the name of your existing VM.List nodes in a swarm (requires SSH access to the VM)
Replace myvm1
with the name of your VM running the swarm master.
Inspect a specific node in a swarm (requires SSH access to the VM)
Replace
<node ID>
with the actual ID of the node you want to inspect. You can get this ID from the previous command's output.View worker join token for a swarm (requires SSH access to the VM)
Replace myvm1
with the name of your VM running a swarm worker.
Open an SSH session to a VM
Replace myvm1
with the name of your VM. Type "exit" to end the SSH session.
Make a worker leave the swarm (requires SSH access to the VM)
Replace myvm2
with the name of the worker VM you want to remove from the
swarm.
Force a swarm master to leave and shut down the swarm (requires SSH access to the VM)
Use this command with caution as it will disrupt the entire swarm.
Start a stopped VM
Replace
myvm1
with the name of your stopped VM.Stop all running VMs
This command will stop all running VMs. Use with caution!
Delete all VMs and their disk images
This command will permanently delete all VMs and their associated disk images. Use with extreme caution!