CircleCI Server 3.x: Troubleshooting DNS resolution and remote docker

Overview

You may encounter the need to change the DNS of your CircleCI Server instance's remote docker container in order to connect with your network. While daunting, the solution is quite simple.

Adding the nameserver to resolv.conf

After setup_remote_docker step add:

- setup_remote_docker
version: 20.10.14
- run:
command: |
ssh remote-docker echo "nameserver x.x.x.x" | ssh remote-docker sudo tee -a /etc/resolv.conf

 

Additional Resources:

Was this article helpful?
2 out of 2 found this helpful

Comments

0 comments

Article is closed for comments.