I want to ask for some help. I am doing the Working with Containers - Publishing Ports.
After building the image, using it for the container, and exposing the port, my react app is not loading in my browser. It says, “The connection was reset.” I am using Windows OS.
My app is running in port 3000, this is the docker command I executed
docker run -d -p 80:3000 --name app appv2
I’d recommend using non-80 ports instead. I found my Edge browser kept trying to be helpful on port 80 (e.g. http://localhost:80) and correcting to other URLs.
I’d also recommend using more different Names for your containers to make it easier to distinguish what’s going on.
e.g.
docker run -d -p 6000:3000 --name alpha appv2
docker run -d -p 6001:3000 --name bravo appv2
docker run -d -p 6002:3000 --name charlie appv2
See if that helps diagnose what isn’t working for you.