-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running "mkdocs serve" through Docker results in "Connection reset by peer" #7197
Comments
Thanks for reporting. This is not a bug – you're overriding the default
|
Ah, I see, the default command is But still I would consider this a bug, as Cannot the default dev-addr be changed when running from inside docker? |
If you consider this a bug, you can raise this to the maintainers of MkDocs, since this happens regardless of the theme We can only work with the API we get from MkDocs, and there's only the CLI's MKDOCS_CONFIG_DEV_ADDR="0.0.0.0:8000" There has been a lot of activity on MkDocs lately, so I guess it's a good time to ask and revisit mkdocs/mkdocs#2108, which is definitely related. However, I recommend to create a new issue to forego necro-posting, because this topic has been very controversial, which you'll learn if you invest the time to read it 😅 |
Whoa, that was quite an unexpected ride. I had no idea that a simple topic like this could be that controversial. As I don't want to cause another maintainer burnout, I think I will simply leave it as is... 🤣 |
I opened a new issue: mkdocs/mkdocs#3724 |
Great! Let's see if the maintainers can consider this now, with so many users wanting it |
Context
This is on Mac, using Docker 26.0.0, and mkdocs 1.6.0, in a completely fresh project:
$ docker --version Docker version 26.0.0, build 2ae903e $ docker run --rm squidfunk/mkdocs-material --version mkdocs, version 1.6.0 from /usr/local/lib/python3.11/site-packages/mkdocs (Python 3.11) $ docker run --rm -v .:/docs squidfunk/mkdocs-material new empty-project $ cd empty-project
Bug description
When I run the "serve" command:
a subsequent
curl
does not work:When i run it without the
serve
argument:everything is fine.
Please note the different IP address. It fails, when it binds to
127.0.0.1
, but works, when it binds to0.0.0.0
:behaves exactly as leaving out the "serve" argument.
Related links
Reproduction
I have no idea what to put here, as this is an issue running through Docker, which happens with every project.
empty.zip
Steps to reproduce
x
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: