I’m in the process of migrating to a new TrueNAS SCALE server and have run into an issue that appears to be either Docker or pFSense related. Since this only effects Docker I figured this would be the best place to start.
I have a newly installed TrueNAS SCALE 25.10.4 server and that is totally stock with only a few TrueNAS apps installed (using Docker under the Truenas wrapper), totally basic network configuration using pFsense as a firewall/router. Everything worked fine and i was able to install/update apps without issue till I setup a firewall rule in pFsense to route all outbound traffic for the server over my Private Internet Access (PIA) VPN connection.
As soon as I activated the PIA connection I’m unable to install or update TrueNAS apps, but I’m also unable to create custom containers using Docker images. Going further I’m unable to install docker images via portainer/Dockage, and even pull images via docker on the command line.
Some of the errors I’ve received are:
Error response from daemon: Head "htts://registry-1.docker.io/v2/nardo86/nut-server/manifests/amd64-latest": Get "htts://auth.docker.io/token?scope=repository%3Anardo86%2Fnut-server%3Apull&service=registry.docker.io": context deadline exceeded
Get "htts://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Error response from daemon: Head "htts://registry-1.docker.io/v2/library/hello-world/manifests/latest": Get "htts://auth.docker.io/token?scope=repository%3Alibrary%2Fhello-world%3Apull&service=registry.docker.io": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
When I disable the firewall rule routing the server over the PIA VPN connection docker pulls immediately start working again.
Troubleshooting the issue some of the things i’ve done are:
- Verified networking is was working correctly over the VPN for other apps including using curl to access sites and wget to download files.
- Verified the DNS was working correctly getting the same results as other machines without the issue.
- Switched the system and Docker DNS settings to 8.8.8.8 etc.
- Adjusted the MTU in the daemon.json to 1400.
- Restarted server.
- Reset PIA VPN connection to get different IPs
- Configured TrueNAS with optional PIA proxy server.
- Configured Docker with optional PIA proxy server.
Are VPN IPs blocked from pulling Docker images? Or is there something else I’m missing? (note https in errors changed to htts cause of link limit in post)