Skip to content

Instantly share code, notes, and snippets.

@ocxo
Created December 14, 2015 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ocxo/f39fa1891a6735d6cbc5 to your computer and use it in GitHub Desktop.
Save ocxo/f39fa1891a6735d6cbc5 to your computer and use it in GitHub Desktop.
$ docker-machine create \
> -d virtualbox \
> --virtualbox-disk-size 50000 \
> --swarm \
> --swarm-master \
> --swarm-discovery="consul://$(docker-machine ip swarm-consul-master):8500" \
> --engine-opt="cluster-store=consul://$(docker-machine ip swarm-consul-master):8500" \
> --engine-opt="cluster-advertise=eth1:0" \
> swarm-master
Running pre-create checks...
Creating machine...
(swarm-master) Creating VirtualBox VM...
(swarm-master) Creating SSH key...
(swarm-master) Starting VM...
Waiting for machine to be running, this may take a few minutes...
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Configuring swarm...
WARNING >>>
This machine has been allocated an IP address, but Docker Machine could not
reach it successfully.
SSH for the machine should still work, but connecting to exposed ports, such as
the Docker daemon port (usually <ip>:2376), may not work properly.
You may need to add the route manually, or use another related workaround.
This could be due to a VPN, proxy, or host file configuration issue.
You also might want to clear any VirtualBox host only interfaces you are not using.
Checking connection to Docker...
Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.101:2376": dial tcp 192.168.99.101:2376: i/o timeout
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment