Open shenshouer opened 8 years ago
Can access the domain If I add the suffix to the domain. for example :
I cannot access the domain mysql-gp-discuz-1-master
in container created by the replicas service in swarm mode.
But can access the domain mysql-gp-discuz-1-master.localhost
in the same container
Is this related to #1429 ? (I know you were here first but I've been going down the issues in reverse chronological order)
No,I think the DNS in container cannot inherit the DNS from host. I must add the search domain to private domain to access. for example:
I have the domain mysql-gp-discuz-1-master
for MySQL database In my private DNS, If connect to this MySQL in container which created by replicas service, I must changed mysql-gp-discuz-1-master
to mysql-gp-discuz-1-master.localhost
in the container code.
If I create replicas mode service, the container created by the tasks can not resolve external domain . And can do in host.