SCALE: Connection refused to docker containers from localhost only

jansennerd10

Cadet
Joined
Feb 13, 2022
Messages
4
I have created a docker registry container in order to be able to deploy customer containers on my new TrueNAS SCALE server.

The container is configured to forward host port 15000 to container port 5000. This works fine to make the registry accessible to other hosts on my network -- I was able to push an image from my laptop just fine.

But when I log into TrueNAS and try to pull the image so I can deploy it, I get a connection refused error. This also occurs when trying curl http://localhost:15000/ from the TrueNAS shell.

How can I make the forwarded ports accessible from TrueNAS?
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,448
How did you deploy this container? Via the UI or did you do some CLI magic? Does it show running in the UI, and can you provide any screenshots of the network section?
 

jansennerd10

Cadet
Joined
Feb 13, 2022
Messages
4
I deployed the container via the UI. It shows as running, and is accessible from another computer - just not the TrueNAS host itself.

Here are the screenshots. I didn't do anything special; just a simple port forward. The rest of the network settings I left unchanged from the defaults.

Thanks for your help!
truenas-networking.png
truenas-port-forwarding.png
 
Top