Docker swarm example keystore pull fails for ssl certs

Expected behavior

docker machine should have started as cosul container

Actual behavior

Error while pulling image: Get x509: certificate signed by unknown authority.


trying to follow the example given in the docker-swarm tutorial

Steps to reproduce the behavior

  1. docker-machine create -d virtualbox --virtualbox-cpu-count 2 --virtualbox-memory “1024” --virtualbox-disk-size “8192” --engine-env HTTP_PROXY= --engine-env HTTPS_PROXY= --engine-opt=“label=com.function=consul” keystore
  2. eval $(docker-machine env keystore)
  3. docker run --restart=unless-stopped -d -p 8500:8500 -h consul progrium/consul -server -bootstrap