I meet a strange problem like this. I need to start an container and clone github project via ssh in side container i just created. Sometime git clone perfect, and there is no trouble. But some time it can't and say this:
ssh: Could not resolve hostname github.com: Try again
fatal: Could not read from remote repository.
I tried a lot of ways, like change mys /etc/resolv.conf by add google DNS, echo google DNS to /etc/resolv.conf inside container, restart docker, reinstall docker but no luck..
My git clone container join in to a docker user define bridge network. I think network is one of my problem but i don't know what exactly happen.
Another notice, everything work fine if i run it in local - ubuntu os. Problem only happen on my Linode serve
There is anyone meet this problem ? Please help me...