Allow changing the default git image

Hi, I recently tried installing Drone in a corporate network that is disconnected from the internet.
I got an error as soon as i tried to run my first pipeline that it couldn’t find the DockerHub registry for the clone step.
I saw this topic about the issue: Change default docker registry?
I would like to suggest to create a more permanent way to solve the issue, either by changing the default registry URL or by allowing to use a custom git image.
It’s the only obstacle for using Drone in a non-internet environment, I think it’s a good thing to solve.

You can use DRONE_RUNNER_CLONE_IMAGE to supply your own custom clone image to the Docker runner, including an image that already exists in your local cache. We have a similar thread for the Kubernetes runner here: Deploy drone in air gap.

1 Like