Docker – Could not load X509 key pair

I am on a fresh install of Docker on OSX El Capitain 10.11.4. I am getting this error when I try any commands with docker.

Could not load X509 key pair: crypto/tls: private key does not match public key. Make sure the key is not encrypted

I can run docker-machine just fine, but not start any docker containers.

  • Attaching a Google persistent disk to a Cloud SDK Docker container
  • How do I write to a volume container as non-root in docker?
  • How to export directory created inside the Docker image to the host machine?
  • How to login local machine and change system parameter when use docker for mac [closed]
  • Docker build freezes installing packages from apt
  • Why can mysql CLI connect, but not WordPress?
  • Docker version (the only docker command that is working so far)

    Brunos-iMac:~ brunoban$ docker -v
    Docker version 1.10.3, build 20f81dd
    

    Docker machine version

    Brunos-iMac:~ brunoban$ docker-machine -v
    docker-machine version 0.6.0, build e27fb87
    

    Docker machine ls

    Brunos-iMac:~ brunoban$ docker-machine ls
    NAME      ACTIVE   DRIVER       STATE     URL                              SWARM   DOCKER    ERRORS
    default   *        virtualbox   Running   tcp://192.168.99.100:2376           v1.10.3
    

    Docker machine env

    export DOCKER_TLS_VERIFY="1"
    export DOCKER_HOST="tcp://192.168.99.100:2376"
    export   DOCKER_CERT_PATH="/Users/brunoban/.docker/machine/machines/default"
    export DOCKER_MACHINE_NAME="default"
    # Run this command to configure your shell:
    # eval $(docker-machine env)
    

    I tried regenerating the certs with docker-machine regenerate-certs (even with the –force flag), but nothing seems to be working. Can anyone shed a light?

    Thanks

  • Dockerpy executing command to cat log file
  • Docker containers shut down after systemd start
  • Design approach for hosting multiple microservices on the same host [closed]
  • Docker and SSH for development with phpStorm
  • Docker nginx SELinux (centOS/RHEL) with 403 forbidden access
  • Docker container not able to locate Zip packages?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.