DRONE_RUNNER_CLONE_IMAGE doesn't seem to work with Docker runner

Hey there guys, hope you’re all doing well. :grinning:

I’m running the Drone Docker agent as follows:

docker run -d \
  --volume=/var/run/docker.sock:/var/run/docker.sock \
  --env=DRONE_RPC_PROTO=http \
  --env=DRONE_RPC_HOST=dev.example.com \
  --env=DRONE_RPC_SECRET=${DRONE_RPC_SECRET} \
  --env=DRONE_RUNNER_CAPACITY=2 \
  --env=DRONE_RUNNER_NAME=${HOSTNAME} \
  --env=DRONE_RUNNER_VOLUMES=/home/fots/pocs/drone-ci/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \
  --env=DRONE_RUNNER_CLONE_IMAGE=fots:latest \
  --publish=3000:3000 \
  --restart=always \
  --name=runner \
  drone/agent:1

However, the clone step still uses the drone/git:latest image. I can confirm this by removing the image from my system; and then running my pipeline. Upon doing this, Drone pulls down drone/git:latest again.

Any ideas?
Fotis

The drone/agent image was deprecated. You should instead start using the drone/drone-runner-docker image which has all the new features.

1 Like

Oopsies, thanks a lot for your help :slight_smile:

I can confirm that DRONE_RUNNER_CLONE_IMAGE works perfectly with drone/drone-runner-docker:1. Thanks again! :slight_smile: