Powershell script using docker-machine to create a Docker cluster with UCP and DTR on DigitalOcean VM's.
-
Add a text file named variables.txt to the root folder.
-
In the text file, add your DigitalOcean API key as listed below:
do_api_token = "<API-KEY>"
-
Using Powershell, execute the following command in the root folder containing the script:
.\create-docker-cluster.ps1
-
To execute commands within a cluster node:
docker-machine ssh <NODE NAME>
-
To take down the cluster:
.\remover-docker-cluster.ps1