-
Notifications
You must be signed in to change notification settings - Fork 75
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
Caddy frequently failing to start correctly on Windows containers #318
Comments
Your config is kinda strange:
Also Also you can use Please also enable the |
Thanks for the pointers - really appreciate it. I've tried the suggestions but without any luck. Apologies for the obfuscation - our cyber security team are really anxious about us posting URLs for internal tools (even when they're on public domains!) - so I've tried to produce a more minimal example with recognised domains. The below is exactly what I'm using now, though. Caddyfile:
Run command:
Log output:
curl -v output:
Output from netstat -a ran from inside the container:
If I switch to Linux containers, the situation improves: Run command:
Curl -v output:
|
Do earlier versions of Caddy (e.g. 2.6.4) work any better? Frankly I don't know anyone else who uses these Windows containers. I don't understand the usecase for them either 🤷♂️ I think we mostly just offer them for completions sake. |
Hello!
I've been trying out the Windows containers recently but have come a bit stuck. I'm sure I must be doing something incorrectly but I can't determine what. My Caddy file resembles this - have omitted the real domains:
I launch the container using the following:
More often than not (approx 80-90% of the time), Caddy doesn't appear to bind to ports 80 nor 443 inside the container. I confirm this by opening a cmdline in the container and running
netstat
which shows nothing listening on port 80 nor 443.Here is the log output when this happens:
When it works, it outputs the following:
I haven't yet been able to identify a pattern as to why it's not working, but I think the problem is limited to the Windows containers because when using the equivilent Linux container I cannot reproduce the issue, even with the same Caddyfile.
Is something going on here that I'm not quite grasping? My understanding is that the behaviour of Caddy, with regards to certificates, is different here because I am using a ".local" TLD, and I think this could be a contributing factor but should still work, as far as I can tell.
Thanks for all your hard work in making these images available!
The text was updated successfully, but these errors were encountered: