When running containers, accessing a container in the browser leads to ERR_CONNECTION_RESET in Chrome, but loads as expected in Firefox. Sometimes it reloads and loads successfully, sometimes, it reloads but only partly, and sometimes it won’t load at all. This happens both with containers I set up and the welcome-to-docker container you can get directly in the GUI.
OS Version/Build: Windows 11 Home, 22621.1848
App Version: Docker version 24.0.2, build cb74dfc
Chrome Version: Version 114.0.5735.199 (64-bit)
Steps to Reproduce:
Attempt 1: Via the welcome-to-docker container
- Go to the Learning Center
- Download the welcome-to-docker container (which starts itself)
- Go to http://localhost:8088/
This circles for a while and eventually shows ERR_CONNECTION_RESET in Chrome, but loads as expected in Firefox.
Attempt 2: Via my own container
- Run the command
docker run -d -p 9000:80 nginx
in command line to create an NGINX container bound to port 9000. - Go to http://localhost:9000/.
Again, this circles for a while and eventually shows ERR_CONNECTION_RESET IN Chrome, but loads as expected in Firefox.
Attempted fixes:
- Checked for Chrome updates
- Disabled extensions while attempting to load the page.
- Tried loading in Incognito Mode to see if it was a particularly strange caching issue.
- Completely cleared all history
- Reset Chrome to defaults.
- Uninstalled and reinstalled Chrome.
- Restarted PC
What’s particularly odd to me is the Docker logs:
This is what seems to be produced when I open the container in Firefox (which works):
2023-07-02 08:25:56 172.17.0.1 - - [02/Jul/2023:13:25:56 +0000] "GET /favicon.ico HTTP/1.1" 200 15086 "http://localhost:8088/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0" "-"
So, that’s a simple 200 response code as you would expect.
I haven’t been able to capture a log for when it doesn’t load at all, but on an instance where it reloaded but only partly (e.g. loaded but looks wrong), I got these when loading in Chrome:
2023-07-02 08:34:11 172.17.0.1 - - [02/Jul/2023:13:34:11 +0000] "GET / HTTP/1.1" 200 659 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-"
2023-07-02 08:34:11 172.17.0.1 - - [02/Jul/2023:13:34:11 +0000] "GET /static/js/main.8b84ea86.js HTTP/1.1" 200 382483 "http://localhost:8088/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-"
2023-07-02 08:34:26 172.17.0.1 - - [02/Jul/2023:13:34:26 +0000] "GET /favicon.ico HTTP/1.1" 200 15086 "http://localhost:8088/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-"
That seems to be sending a 200 response, but also a 659, and I don’ t know what that represents? It doesn’t seem to be a standard response. Another time (but I didn’t copy this log), I got a 200 and 615, which I think is an SSL error.
I did look at the forums and do a fair bit of searching, but I didn’t find anyone with a matching error to this. Does anyone have any ideas for fixes?