GithubHelp home page GithubHelp logo

Comments (7)

dblandin avatar dblandin commented on May 18, 2024

Sometimes the docker-machine networking stack gets in a weird state and a restart helps.

$ docker-machine restart default

Can you give that a try? You may need to change default to another name if you've set docker-machine up differently.

from codeclimate.

rjrobinson avatar rjrobinson commented on May 18, 2024

Thanks. After I restarted I got this error...

brew install codeclimate                                                                                                  [8:27:24]
==> Installing codeclimate from codeclimate/homebrew-formulae
==> Downloading https://github.com/codeclimate/codeclimate/archive/v0.9.6.tar.gz
Already downloaded: /Library/Caches/Homebrew/codeclimate-0.9.6.tar.gz
==> env PATH=/usr/local/bin:/usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin PREFIX=/usr/local/Cellar/codeclimate/0.9.6 make install
Last 15 lines from /Users/rrobin008c/Library/Logs/Homebrew/codeclimate/01.env:
2015-10-28 08:27:33 -0400

env
PATH=/usr/local/bin:/usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin
PREFIX=/usr/local/Cellar/codeclimate/0.9.6
make
install

bin/check
An error occurred trying to connect: Get https://192.168.59.103:2376/v1.20/version: dial tcp 192.168.59.103:2376: i/o timeout
Unable to run `docker version', the docker daemon may not be running
Please ensure `boot2docker up` succeeds and you've run `eval $(boot2docker shellinit)` in this shell
make: *** [install] Error 1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/codeclimate/homebrew-formulae/issues

and

docker-machine ls                                                                                                         [8:28:06]
NAME      ACTIVE   DRIVER       STATE     URL                         SWARM
default            virtualbox   Running   tcp://192.168.99.100:2376
dev                virtualbox   Stopped

do I have to start the dev docker container?

from codeclimate.

dblandin avatar dblandin commented on May 18, 2024

Ahh, it looks like your shell still has an old IP address for the docker-machine instance. It's trying to connect at 192.168.59.103 and I can see in your docker-machine listing that the IP is actually 192.168.99.100.

With boot2docker, that IP address was more likely to be static, but with docker-machine, an instance's IP address can change between restarts so you sometimes have to run eval "$(docker-machine env default)" after restarting for your shell to pick up the new address.

That line simply sets a few environment variables so your shell can connect successfully. It's a good idea to add it to your .bash_profile or .zshrc as well.

Here's the command's output without the eval:

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

Can you try running eval "$(docker-machine env default)" and trying the install again? You shouldn't have to restart the dev instance if you're using default.

Sorry for the trouble. Docker can be a little tricky to setup.

from codeclimate.

rjrobinson avatar rjrobinson commented on May 18, 2024

No worries about the trouble. I know the issues. I'll try that. Thanks for the help. I'll update you.

from codeclimate.

rjrobinson avatar rjrobinson commented on May 18, 2024

Thanks for the help. The issue was when I originally installed boot2docker way back, it had me setting env vars. It was deep... I deleted them, reinstalled all of docker. CC works now. BTW. Love the tool!!!

from codeclimate.

dblandin avatar dblandin commented on May 18, 2024

Awesome! I'm glad we were able to get you setup! Feel free to reach out if you have any feedback. 👍

from codeclimate.

rjrobinson avatar rjrobinson commented on May 18, 2024

Thanks again so much

from codeclimate.

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.