Hi there
My Docker installation has startede acting up lately.
And to be frank I’m not certain where to start, but here goes.
I’ve multiple containers exposing web applications, e.g. Home Assistant, Plex, Portainer and Pihole.
Some times I can access these containers when I’m on the same network as my Docker installation (which runs on a Raspberry Pi 4 4GB), some times a cannot and get an “ERR_CONNECTION_REFUSED” in my Edge browser when trying to access the containers.
Note: I’ve got LetsEncrypt certificates in the containers for url1.domain.com
.
The error does not make much sense as:
- If I access through my standard url (url1(.domain.com)) it does not work from time to time - it can stop working in the middle of a session where I’m browsing the site. At other times it just works.
- If I access the containers in a standard browser when the error happens, I can go to an InPrivate Edge session and then it works.
- If I access the container through the IP address it works - BUT of course I get SSL errors
- If I access the container through url2(.domain.com) it works but again the same as the above point, SSL error
- When inaccessible through url1(.domain.com) (in std browser, not InPrivate), I can access the container from my phone IF the phone is not on my network directly, but connected through VPN.
I’m having a hard time grasping, if the error is related to docker or my network setup.
It used to work - I’m not aware of any changes in my network.
My own takes:
- It can be dockers networking
- It could be my DNS (running on the RPi in one of the containers - PiHole)
- It could be my own network (Unifi) configuration
- It could be related to http(s) support in my installation? (See note 2)
- It could be my RPi that’s getting old or overloaded, but I do think that’s the issue (see note 3)
Note: some containers are on the host network, some on the OotB bridge network - no fancyness there, the error happens for all the containers.
Note 2: One container is running MQTT, this seems to work no matter what
Note 3: My RPi is in no way maxed out - it consumes approx 30% of the memory and approx 10% of the CPU.
Any hints for troubleshooting?
Thanks
Docker info:
User@raspberrypi:~ $ sudo docker version
Client: Docker Engine - Community
Version: 27.4.0
API version: 1.47
Go version: go1.22.10
Git commit: bde2b89
Built: Sat Dec 7 10:38:32 2024
OS/Arch: linux/arm64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.4.0
API version: 1.47 (minimum version 1.24)
Go version: go1.22.10
Git commit: 92a8393
Built: Sat Dec 7 10:38:32 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.7.24
GitCommit: 88bf19b2105c8b17560993bee28a01ddc2f97182
runc:
Version: 1.2.2
GitCommit: v1.2.2-0-g7cb3632
docker-init:
Version: 0.19.0
GitCommit: de40ad0