-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't create correctly vm #217
Comments
Sounds like your host DNS server isn't working for some reason -- what VM provider are you using? This is likely a docker-machine issue, if you use |
i'm using xhyve. Put a sort of try / catch on the "dinghy create" command in the pull: if that fails, replace the nameserver with google and try again: it is dirty, but I've seen around that is a common problem (with docker machine). Thank you |
I wouldn't want to make it a completely automatic thing, since it could easily be a transient problem and using google's DNS servers will cause custom name resolutions to stop working. It seems reasonable to make it an explicit option, though, or perhaps this is another use case for the "lifecycle hooks" idea that has been tossed around a couple times -- have dinghy execute shell scripts placed in |
I think it's a good idea |
@codekitchen can I do a PR, for edit of cli.rb to move "start_services" out from private method? |
Yeah that seems reasonable. However, I think you'll have to modify resolv.conf every time you start the VM, the change won't persist. |
I just ran into this myself creating a new machine with xhyve. It seems to be a new problem, or at least more common, with MacOS 10.12. However, at least for me it wasn't permanent, DNS resolution only fails for a second or so after the DNS resolver has been configured, then it starts working as expected. It appears that MacOS takes a moment to reconfigure the DNS service, during which period all DNS lookups from the VM fail with a connection refused error. My current workaround is to just wait for a few seconds before trying to pull the docker image, which is silly but effective. This fix is on master and will go out with the next release, probably in a couple days. |
That fix has been released, let me know if you still see this problem after updating to dinghy 4.4.3 |
Yes good job! Thank you |
I'm still having this issue using Dinghy 4.6.5 freshly installed |
If I try to create a new machine with dinghy create command I receive this output:
Creating the default VM...
Starting NFS daemon, this will require sudo
Password:
Waiting for NFS daemon...
Mounting NFS /Users/ramin
Starting the FsEvents daemon
Starting DNS and HTTP proxy
setting up DNS resolution, this will require sudo
Unable to find image 'codekitchen/dinghy-http-proxy:2.5.3' locally
Pulling repository docker.io/codekitchen/dinghy-http-proxy
docker: Error while pulling image: Get https://index.docker.io/v1/repositories/codekitchen/dinghy-http-proxy/images: dial tcp: lookup index.docker.io on 192.168.64.1:53: read udp 192.168.64.21:51399->192.168.64.1:53: read: connection refused.
See 'docker run --help'.
VM: running
NFS: running
FSEV: running
DNS: stopped
PROXY: stopped
I've tried to uninstall toolbox and reinstall all docker via brew.
The only way was changing /etc/resolv.conf in the docker machine with
google dns with 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
but, how can I replicate the next steps of the dinghy create after changing the nameservers?
The text was updated successfully, but these errors were encountered: