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.

  • Running a cronjob or task inside a docker cloud container
  • How to merge two running Docker Containers?
  • Docker copy command to copy a jar file from target folder
  • Amazon Elastic Beanstalk vs EC2 instance with docker containers
  • why does kafka docker need to listen on unix socket
  • Network unreachable inside docker container without --net=host parameter
  • 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

  • Deploy AngularJS app into docker container
  • ERROR: (gcloud.preview) Invalid choice: 'docker'. Did you mean 'dm-v2'?
  • Docker error cannot delete docker container, conflict: unable to remove repository reference
  • Write GET request for docker
  • Error “Could not find rake-10.5.0 in any of the sources” on Phusion Passenger Docker image
  • Deploy apps from release server
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.