Building Docker Rust Image

Hi,

When I try to build a Rust Image with a rust app inside like in the
Docs.

Network and DNS work perfectly fine on my host but when I try to build an
image from the rust official image, the build process has issue:


0.795 Updating crates.io index
0.799 warning: spurious network error (3 tries remaining): [6] Couldn’t resolve host name (Could not resolve host: index.crates.io)


It seems like an issue from inside the building image with DNS …

Any fix to help me?

Rgds,