LinuxCommandLibrary

docker-machine

TLDR

List machines

$ docker-machine ls
copy
Create a machine
$ docker-machine create --driver [virtualbox] [name]
copy
Start a machine
$ docker-machine start [name]
copy
Stop a machine
$ docker-machine stop [name]
copy
Get machine IP
$ docker-machine ip [name]
copy
SSH into machine
$ docker-machine ssh [name]
copy
Set environment for machine
$ eval $(docker-machine env [name])
copy

SYNOPSIS

docker-machine command [options] [args]

DESCRIPTION

docker-machine creates and manages Docker hosts on local hypervisors or cloud providers. Allows running Docker Engine on remote machines.

SUBCOMMANDS

ls

List machines.
create
Create a machine.
start
Start a machine.
stop
Stop a machine.
rm
Remove a machine.
ssh
SSH into machine.
ip
Get machine IP address.
env
Display environment variables.
status
Get machine status.
inspect
Inspect machine info.

CAVEATS

Docker Machine is deprecated. Docker Desktop or cloud-native solutions are now preferred for managing Docker environments.

SEE ALSO

Copied to clipboard