Hi,
Just migrated from Ubuntu for my NAS with SMB shares and docker to TrueNAS SCALE 21.06. Have to say I'm very impressed and had very few issues for something in Beta so thanks to everyone involved.
One query though - I am currently still running some docker containers on SCALE (as these don't yet have a SCALE equivalent). The standalone ones work fine but how do I get them to talk to each other? Under plain docker on Ubuntu they used the container name in the default docker network, but I realise SCALE is using Kubernetes so different. I saw an article that SCALE apps should use a different name to communicate internally - "$NAME.ix-$NAME.svc.cluster.local" but this doesn't seem to work for docker apps.
Should it work and is this a bug or is there a different way to do it for docker containers?
For now I have got around this by putting my mariadb and other docker containers that need to talk to the db on host network and using the host IP for the mariadb name which works fine, except that means they're accessible from my whole LAN and use the native container ports which sometimes overlap, so not ideal.
If someone could explain how docker containers are supposed to talk to each other (without using host network) it would really help, or is internal docker container to docker container connectivity not supported on SCALE so I just need to wait until mariadb and other containers are available as SCALE apps or use a VM for now?
Thanks!
Just migrated from Ubuntu for my NAS with SMB shares and docker to TrueNAS SCALE 21.06. Have to say I'm very impressed and had very few issues for something in Beta so thanks to everyone involved.
One query though - I am currently still running some docker containers on SCALE (as these don't yet have a SCALE equivalent). The standalone ones work fine but how do I get them to talk to each other? Under plain docker on Ubuntu they used the container name in the default docker network, but I realise SCALE is using Kubernetes so different. I saw an article that SCALE apps should use a different name to communicate internally - "$NAME.ix-$NAME.svc.cluster.local" but this doesn't seem to work for docker apps.
Should it work and is this a bug or is there a different way to do it for docker containers?
For now I have got around this by putting my mariadb and other docker containers that need to talk to the db on host network and using the host IP for the mariadb name which works fine, except that means they're accessible from my whole LAN and use the native container ports which sometimes overlap, so not ideal.
If someone could explain how docker containers are supposed to talk to each other (without using host network) it would really help, or is internal docker container to docker container connectivity not supported on SCALE so I just need to wait until mariadb and other containers are available as SCALE apps or use a VM for now?
Thanks!