RUST image error when curl it, but will work correctly when running it with “`Cargo run“`
i’ve made a small and simple RUST RESTful server, Im encountering an issue when trying to curl to the docker image version of the program: curl: (56) Recv failure: Connection reset by peer
, and when trying to surf directly to 127.0.0.0:3000
ill get This site can’t be reached
error.
rust program (server) will remain running, but will close immediately running as a docker image
I have a very simple “Hello world” server that i wrote in RUST, the program is running correctly locally (not as an image), cargo run
rust program will remain running on localhost, but will close immediately running as an image
I have a very simple “Hello world” server that i wrote in RUST, the program is running correctly locally (not as an image), cargo run
Unable to build rust TcpListener docker image
Im trying to build a docker image for my RUST TcpListner server, but im encountering the following error when trying to build the image, the rust code will compile correctly alone –