On Rancher web interface i cannot access apps catalog. I enter on rancher/server container and found some git clone pending, inside my Company only comany dns are allowed by Enterprise Firewall !

  1. Go to Docker HOST Machine
~$ ssh user@docker-host
~$ sudo docker exec -it <rancher/server-id> /bin/bash
  1. Inside rancher/server container check dns
~> ps aux | grep git
~> dig google.com

~> cat /etc/resolv.conf
  1. Change dns servers inside rancher-server container !
~# sed -i "s/nameserver dns.company.com/g" /etc/resolv.conf
~# sed -i "s/nameserver dns2.company.com/g" /etc/resolv.conf

~# echo "dns.company.com" > /etc/resolvconf/resolvconf.d/base
~# echo "dns2.company.com" >> /etc/resolvconf/resolvconf.d/base
~# /etc/init.d/resolvconf restart
  1. Back to the Docker HOST Machine, change the google dns to company dns. Replace dns.company.com by the ip address of your company dns server.
~# vi /etc/default/docker
    #DOCKER_OPTS="--dns --dns"
    DOCKER_OPTS="--dns dns.company.com --dns dns2.company.com

~# service docker restart