arun-gupta / docker-java

Docker for Java Developers
386 stars 230 forks source link

Creating machine with 5GB fails intermitently #143

Open jimzucker opened 8 years ago

jimzucker commented 8 years ago

During the Class on 12/13 with Arun we created 5GB machines on the mac with the command: docker-machine create -d virtualbox --virtualbox-disk-size "5000" --swarm --swarm-master --swarm-discovery="consul://$(docker-machine ip consul-machine):8500" --engine-opt="cluster-store=consul://$(docker-machine ip consul-machine):8500" --engine-opt="cluster-advertise=eth1:2376" swarm-master

In the class for most people this worked, but for about 4 of us the command did not work properly we only end up with a 1GB machine (Default size).

couple of notes:

  1. when we ran docker-machine inspect --format='{{json .Driver}}' swarm-master *It reported ..,"DiskSize":5000,.. but the machine was only 1GB when we logged into it.
  2. to fix the issue we simply deleted the machine and re-created with the same command