-
Previous Value Current Value DNS server added to docker is not recognized when build performed with OneDev
DNS server added to docker is not recognized when build performed with OneDev Server Shell Executor
-
Also, I checked if the whole operation would work by directly executing the instructions using
bashfrom inside the OneDev docker container: it works and the domain name translation is indeed successful. -
All OneDev's docker operation is relayed to host docker due to use of
-v /var/run/docker.sock:/var/run/docker.sock. So you need to configure host docker to make sure the DNS works. -
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
Not Found
|
Issue Votes (0)
This is a bit complex, so please bear with me:
192.168.1.52which allows me to give domain names to all our self-hosted applications (in a subdomain of our main address)docker-compose.ymlfile of OneDev:Result: it works fine and when accessing
bashfrom within the OneDev docker container, I cancat /etc/resolv.confand the result is correct:I also checked the translation from the domain name to the IP address with
hostand it works.Now that the DNS server is accessible and working from my OneDev docker container, I feel justified to use the domain name address of my docker registry instead of its IP Address when pushing an image to the registry at
reg.lan.***.com:5000.Unfortunately, It does not work and docker throws an error that proves that the DNS server is no longer recognized when executing an instruction from the Server Shell Executor:
Instead the Server Shell Executor is relying on docker's default DNS server, Google's.