Add RancherOS docker-machine driver

This commit is contained in:
Jason-ZW
2018-06-08 13:48:09 +08:00
committed by Denise
parent 351ce6502e
commit fc975ea21a

View File

@@ -13,7 +13,7 @@ Get the latest `rancheros.iso` artifact from the RancherOS [releases](https://gi
### Using Docker Machine
You can use Docker Machine to launch VMs for various providers. Currently only VirtualBox and AWS are supported.
You can use Docker Machine to launch VMs for various providers. Currently VirtualBox and VMWare(VMWare VSphere, VMWare Fusion) and AWS are supported.
#### Using Docker Machine with VirtualBox
@@ -43,6 +43,47 @@ $ VBoxManage list runningvms | grep <MACHINE-NAME>
This command will print out the newly created machine. If not, something went wrong with the provisioning step.
#### Using Docker Machine with VMWare VSphere
_Available as of v1.4_
Before moving forward, youll need to have VMWare VSphere installed. Once you have VMWare VSphere and Docker Machine installed, its just one command to get RancherOS running.
```
$ docker-machine create --driver vmwarevsphere --vmwarevsphere-username=<USERNAME> --vmwarevsphere-password=<PASSWORD> --vmwarevsphere-memory-size=<MEMORY-SIZE> --vmwarevsphere-boot2docker-url=<LOCATION-OF-RANCHEROS-VMWARE-ISO> --vmwarevsphere-vcenter=<IP-ADDRESS> --vmwarevsphere-vcenter-port=<PORT> --vmwarevsphere-disk-size=<DISK-SIZE> <MACHINE-NAME>
```
> **Note:** Instead of downloading the RancherOS VMWare ISO, you can directly use the URL for the rancheros-vmware.iso.
Example using the RancherOS VMWare latest link:
```
$ docker-machine create --driver vmwarevsphere --vmwarevsphere-username <USERNAME> --vmwarevsphere-password <PASSWORD> --vmwarevsphere-memory-size <MEMORY-SIZE> --vmwarevsphere-boot2docker-url https://releases.rancher.com/os/latest/rancheros-vmware.iso --vmwarevsphere-vcenter <IP-ADDRESS> --vmwarevsphere-vcenter-port <PORT> --vmwarevsphere-disk-size <DISK-SIZE> <MACHINE-NAME>
```
Thats it! You should now have a RancherOS host running on VMWare VSphere. You can verify that you have a VMWare(ESXi) VM running on your host.
#### Using Docker Machine with VMWare Fusion
_Available as of v1.4_
Before moving forward, youll need to have VMWare Fusion installed. Once you have VMWare Fusion and Docker Machine installed, its just one command to get RancherOS running.
```
$ docker-machine --driver vmwarefusion --vmwarefusion-memory-size <MEMORY> --vmwarefusion-boot2docker-url <LOCATION-OF-RANCHEROS-VMWARE-ISO> <MACHINE_NAME>
```
> **Note:** Instead of downloading the RancherOS VMWare ISO, you can directly use the URL for the rancheros-vmware.iso.
Example using the RancherOS VMWare latest link:
```
$ docker-machine --driver vmwarefusion --vmwarefusion-memory-size <MEMORY> --vmwarefusion-boot2docker-url https://releases.rancher.com/os/latest/rancheros-vmware.iso <MACHINE_NAME>
```
Thats it! You should now have a RancherOS host running on VMWare Fusion. You can verify that you have a VMWare Fusion VM running on your host.
### Logging into RancherOS
Logging into RancherOS follows the standard Docker Machine commands. To login into your newly provisioned RancherOS VM.