Giter Site home page Giter Site logo

Comments (5)

phuongnd08 avatar phuongnd08 commented on August 20, 2024

Hmm, that's weird. Doing boot2docker shellinit prints some variables but it does not apply to current shell. I copy these variables to ~/.bashrc and docker is working properly now. Here's my variables:

    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/my/home/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

from osx-installer.

SvenDowideit avatar SvenDowideit commented on August 20, 2024

@phuongnd08 you need to run $(boot2docker shellinit) for it to be applied to your current bash

from osx-installer.

andrey-vyatkin avatar andrey-vyatkin commented on August 20, 2024

exporting DOCKER_TLS_VERIFY=1 solved the problem, but boot2docker shellinit does not return anything about DOCKER_TLS_VERIFY

$ boot2docker shellinit
Writing /Users/avyatkin/.docker/boot2docker-vm/ca.pem:
Writing /Users/avyatkin/.docker/boot2docker-vm/cert.pem:
Writing /Users/avyatkin/.docker/boot2docker-vm/key.pem:
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/avyatkin/.docker/boot2docker-vm

from osx-installer.

spockz avatar spockz commented on August 20, 2024

If you do not perform $(boot2docker shellinit) the pem files are not written at all giving a different error. So be sure the pem files exist and match.

from osx-installer.

hyperfocus1338 avatar hyperfocus1338 commented on August 20, 2024

The issue was with my .bash_profile. It should be like this:

export DOCKER_HOST=tcp://192.168.99.100:2376
export DOCKER_MACHINE_NAME=default
export DOCKER_TLS_VERIFY=1
export DOCKER_CERT_PATH=/Users/username/.docker/machine/machines/default

from osx-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.