Skip to content

Instantly share code, notes, and snippets.

@thinhnd8752
Forked from kpettijohn/docker_host_vsphere.sh
Created April 18, 2017 16:13
Show Gist options
  • Save thinhnd8752/c9119f53caa98bb03b3573a5c09c835b to your computer and use it in GitHub Desktop.
Save thinhnd8752/c9119f53caa98bb03b3573a5c09c835b to your computer and use it in GitHub Desktop.

Revisions

  1. Kevin Pettijohn created this gist Aug 3, 2015.
    16 changes: 16 additions & 0 deletions docker_host_vsphere.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #!/bin/bash
    # Example docker-machine vSphere create

    export VSPHERE_CPU_COUNT=4
    export VSPHERE_MEMORY_SIZE=8192
    export VSPHERE_DISK_SIZE=100000
    export VSPHERE_VCENTER="vcenter.doamin.com"
    export VSPHERE_USERNAME="DOAMIN\user"
    export VSPHERE_PASSWORD=""
    export VSPHERE_NETWORK="VM Traffic"
    export VSPHERE_DATASTORE="datastore_name"
    export VSPHERE_DATACENTER="datacenter_name"
    export VSPHERE_POOL="/datacenter_name/host/host_name/Resources/pool_name"
    export VSPHERE_COMPUTE_IP=""

    docker-machine create -d vmwarevsphere docker-vsphere