← 返回命令列表

Linux command

docker-machine 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

List machines

docker-machine ls

Create a machine

docker-machine create --driver [virtualbox] [name]

Start a machine

docker-machine start [name]

Stop a machine

docker-machine stop [name]

Get machine IP

docker-machine ip [name]

SSH into machine

docker-machine ssh [name]

Set environment for machine

eval $(docker-machine env [name])

说明

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.

FAQ

What is the docker-machine command used for?

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.

How do I run a basic docker-machine example?

Run `docker-machine ls` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more docker-machine examples?

This page includes 7 examples for docker-machine, plus related commands for nearby Linux tasks.