Comments (7)
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.
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.
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.
No worries about the trouble. I know the issues. I'll try that. Thanks for the help. I'll update you.
from codeclimate.
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.
Awesome! I'm glad we were able to get you setup! Feel free to reach out if you have any feedback. 👍
from codeclimate.
Thanks again so much
from codeclimate.
Related Issues (20)
- Allow import for external .codeclimate.yml configurations HOT 2
- problem with CODECLIMATE_PREFIX with CODECLIMATE_DEV=1
- Auto ignore files declared on `.gitignore`
- Support for mounting /code directory read-write when analyzing?
- Support Apple M1 HOT 4
- Update rubocop engine channels
- Docker image latest release HOT 7
- [Question] Atom plugin for Windows
- Dockerimage - 0.86.0 "No such file or directory" HOT 5
- Include latest RuboCop channels in engines.yml HOT 1
- Codeclimate is throwing security issue for AWS Lambda ephemeral storage
- Support for Golang seems to be unmaintained HOT 1
- add engine for salt-lint
- Cppcheck --inline-suppr flag not present HOT 1
- Reek configuration custom location HOT 1
- Feature request: Plugin to detect secret sprawl
- CppCheck report a huge input error when scan big c++ repo
- Publish pipeline failed for version 0.93
- CONTAINER_TIMEOUT_SECONDS not honored? HOT 1
- ImagePullFailure error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeclimate.