I have a problem running drone+gogs in my local environment,
Initialized empty Git repository in /drone/src/git.local/apl/test/.git/
+ git remote add origin https://git.local/apl/test.git
+ git fetch --no-tags origin +refs/heads/master:
fatal: unable to access 'https://git.local/apl/test.git/': Could not resolve host: git.local
exit status 128
I can ping gogs server and clone this repository on server and worker.
i’m using latest version of drone running on alpine.
drone/agent 0.8-alpine a59d0ad4d071 3 days ago 18.8MB
drone/drone 0.8-alpine 751a9128c47c 3 days ago 35.9MB
Thank you in advance.
I think there are existing threads that discuss this error and how to resolve http://community.harness.io/search?q=Could%20not%20resolve%20host
i’ve added env
DRONE_NETWORK=br-pub, but nothing changed. Is it possible to set more option for build container like
--extra-hosts and have more detailed debug?
If you need to add a custom DNS server you can configure it with you Docker daemon. On linux you can create or edit the
/etc/docker/daemon.json file. More details here: https://docs.docker.com/engine/reference/commandline/dockerd/#on-linux
yes, all of them already there.
$ sudo cat /etc/docker/daemon.json
"dns": ["192.168.1.2", "192.168.1.4"],
This thread describes how others have solved this problem:
Unfortunately I’m not sure there is much more I can do to assist, but hopefully the above link helps you to resolve the problem. Good luck!
is it possible to set debug to maximum level to see what and how drone doing?
Please close this thread. Issue resolved by reimagine host from scratch.
hi Did you solved it ?
I am meetting this question now ,
so could you share how to finish it ,