I have a quick question about setting the domainname in Rancher. The behaviour differs from Docker native and I don’t know how.
We have a java program that is licenced and the licence is tied to the hostname being in our domain.This is packaged as a docker container and deployed using the domainname parameter to ensure that the container hostname is whatever.ourdomain.com. This appears to work as the hostname in bash in the entrypoint shell script and also in an exec shell is indeed in ourdomain.com. However when deployedin Rancher the Java program is reading the hostname without a domain at all. Starting the exact same container on the same docker host using docker-compose instead of rancher-compose and the same docker-compose.yml actually works. There’s obviously a slight difference in how the domainname parameter is handled in rancher-compose and docker-compose.
Rancher v1.6.21
Rancher-compose v0.12.5