-
Notifications
You must be signed in to change notification settings - Fork 243
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
Installing CRC breaks docker build
#287
Comments
I am not sure about the issue here. We create a CRC specific birdge that should have no influence on your environment, so can you explain more what 'Boom!' actually is? Can you provide some output from the Also, what is the platform you run this on and where does 'docker' come from (centos 7)? |
I think I described the issue, please let me know what you are missing:
An output from the build would be e.g. curl failing to download a file.
Again, I think I posted that already. Please let me know what you are missing:
Docker itself comes from RHEL:
|
Are you using this from the Red Hat network? problem is when you use dnsmasq with NM then you are actually putting |
Yes, I am running this being attached to a local Red Hat LAN. No VPN.
I am not sure what you mean by the last paragraph. My expectation towards CRC would be, that it works inside the Red Hat network, like minikube and minishift work right now, inside the Red Hat network. |
CRC would work, but you filed an issue related to `docker build` failing.
And this is due to the fact how 'docker' interprets a 127.0.0.1 entry in
/etc/resolv.conf. This is not something we can handle here.... but would
have to be filed against the upstream.
Note: since NetworkManager with the installer and CRC uses
`dnsmasq=true` it will use `127.0.0.1` as first entry in `/etc/resolv.conf`.
It is Docker that replaces this with `8.8.8.8`. Since you are on the RH
network, this nameserver is blocked. See: moby/moby#6388
|
A possible solution is to provide an override for the DNS: https://askubuntu.com/questions/475764/docker-io-dns-doesnt-work-its-trying-to-use-8-8-8-8
Note: replace the values with the nameservers as allowed by your network. |
Closing this issue as this is unrelated to CRC. |
docker and podman apparently have a --dns option which can be used as well |
This is all fine, but I still think that CRC should not break an working docker installation. And while the problem manifests in Docker, installing CRC was the cause for this problem. So I would guess it is a CRC issue. |
@ctron Should a warning at the end of |
@praveenkumar That would at least be helpful. Any maybe a |
I faced with this issue too. It would be nice for development flow to have crc and docker working both and in the same time on the working laptop. |
@AndrienkoAleksandr yes but it is not limitation of CRC, if you run your own local dns server you will face the same. Please check containers/podman#4508 and moby/moby#23910 , what we can do is document it and put a note for user.
@ctron we are trying to implement |
This is because the setting is changed using I believe this should also be made more clearly during the Note: moving this to |
But why doesn't |
@ctron minishift never used the dnsmasq, this is more like a requirement from openshift4 side where we neeed to create the cluster ourself before bundle it and the cluster have to use a vaild domain name instead of IP which can't changed at later stage. |
Minishift relies on external DNS provided by a service called xip.io/nip.io that just resolves to the IP address that is part of the actual FQDN. This means 'any' DNS would work that can resolve this domain, with the caveat that the IP address can never change during the lifetime of the cluster (restarts included). However, for CRC we use a local DNS that resolves api.crc.testing to a local IP address. The IP dddress is allowed to change, as long as the local DNS has the right IP address. We use dnsmasq for this since others had issues binding on port 53 when libvirt was using this already (but the sockert reuse does not work with other servers). |
If this is just for a single DNS name, then why not use the "hosts" file? |
@ctron it is not for single DNS name, otherwise we could've used the |
@praveenkumar Yes indeed. From @gbraad it looked to me as if you only have an issue with a single hostname:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is obvious from this specific hostname, but all in crc.testing znd apps-crc.testing are affected. Closing with wontfix. Crc cleanup is another issue |
Last steps:
crc
according to https://code-ready.github.io/crc/docker build
Expected behavior:
docker build
has network access.Actual behavior:
docker build
fails due to network issues.Workaround:
crc
in the file name from/etc/NetworkManager
sudo systemctl reload NetworkManager
sudo systemctl restart docker
System:
Docker:
The text was updated successfully, but these errors were encountered: