# Building Docker Rust Image

**URL:** <https://forums.docker.com/t/building-docker-rust-image/139863>\
**Category:** General\
**Tags:** build\
**Created:** [February 15, 2024, 7:16pm UTC](https://forums.docker.com/t/building-docker-rust-image/139863 "2024-02-15T19:16:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelchlon](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/michaelchlon/32/45516_2.png) [@michaelchlon](https://forums.docker.com/u/michaelchlon)\
**Post date:** [February 15, 2024, 7:16pm UTC](https://forums.docker.com/t/building-docker-rust-image/139863/1 "2024-02-15T19:16:50Z")

</div>

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](http://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](http://index.crates.io))

* * *

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

Any fix to help me?

Rgds,
