LinuxCommandLibrary

docker-machine

provision and manage Docker hosts on virtual machines

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. It automates the process of creating virtual machines, installing Docker, and configuring the Docker client to connect to them. Supports multiple drivers including VirtualBox, VMware, AWS, Azure, and Digital Ocean.

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community