lightpharosio / allsparkdeployer

Allspark Forge DevOPs deployer
5 stars 1 forks source link

Onebox - Allspark components Naming resolution #2

Open davStar opened 5 years ago

davStar commented 5 years ago

Problem:

It is not possible for allspark components to exchange each other. Not possible to resolv the name of each services inside the allspark appliance.


Infomation:

On onebox product containers doesn't mount /etc/hosts files from host and resolv.conf .

Xide commented 5 years ago

Hi @davStar,

If i understood your issue correctly, you are trying to customise your containers resolv.conf by mounting it from the host in the containers (Although i don't see any reference of such volume in the source code).

If it is the case, your resolution issues are caused by this volume : It changes the container DNS server, but the service resolution is handled by the Docker daemon DNS on non-bridge networks.

With the current network setup, you can customise the containers resolution with the --dns, --dns-search and --dns-opt daemon flags, it will use this resolver if the requested name doesn't exists in the docker network. You'll also need to remove the resolv.conf volume for the containers to use your embedded DNS.

Regards,