Automate container provisioning on your network or in the cloud. Available for Windows, macOS, or Linux.
GitHub: https://github.com/docker/machine
命名为 default
创建
使用官方支持的 virtualbox
驱动。
1 | $ docker-machine create \ |
Windows Hyperv
1 | $ docker-machine create ` |
--hyperv-virtual-switch
macOS xhyve
使用第三方驱动 xhyve
GitHub: https://github.com/zchee/docker-machine-driver-xhyve
1 | $ brew install docker-machine-driver-xhyve |
列出
1 | $ docker-machine ls |
进入
1 | $ docker-machine env default |
通过 SSH 进入
1 | $ docker-machine ssh default |