-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rust image creation fail due to: "download of config.json failed" #121143
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
Comments
Cargo is trying to resolve the domain name |
Not at all! Everything is working perfectly fine on my host. |
The issue tracker is for problems or features in Rust or the tools we distribute. It sounds like you need support with using Cargo in your Docker setup, so one of these places would be a better place to get help: https://www.rust-lang.org/community |
Hi,
When i try to buils an image for a rust App I always got this error:
0.544 Updating crates.io index 0.548 warning: spurious network error (3 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io) 1.940 warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io) 5.441 warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io) 11.94 error: failed to get
chronoas a dependency of package
rust-web-dev v1.0.0 (/app)11.94 11.94 Caused by: 11.94 failed to query replaced source registry
crates-io11.94 11.94 Caused by: 11.94 download of config.json failed 11.94 11.94 Caused by: 11.94 failed to download from
https://index.crates.io/config.json`11.94
11.94 Caused by:
11.94 [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
`
Any idea to solve this?
I am stuck and have not find any fix that works on internet.
:(
Rgds,
The text was updated successfully, but these errors were encountered: