简体   繁体   中英

boot2docker certificate error

I download the boot2docker@1.7.1 and install it through the package wizard. But when I try to run it, it throws me this error:

An error occurred trying to connect: Post https://192.168.59.103:2376/v1.19/containers/create: remote error: bad certificate

I tried with all this options, but the issue remains.

You could try running boot2docker shellinit to set up your certificates and print some commands to be executed before you run anything using the docker command.

On a Mac it would look similar to:

Writing /Users/xyz/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/xyz/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/xyz/.boot2docker/certs/boot2docker-vm/key.pem
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/xyz/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

Here you could simply run $(boot2docker shellinit) to set up everything properly.

On Windows you will have some SET commands to issue instead of those export commands. For further information for Windows users please refer to the boot2docker documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM