Missing clear-docker-cache script in the Docker image from v17.8.0 onwards

Summary

Missing clear-docker-cache script which should be located in /usr/share/gitlab-runner/clear-docker-cache from v17.8.0 onwards.

Steps to reproduce

v17.8.0

$ docker run --rm --entrypoint sh gitlab/gitlab-runner:v17.8.0 -c "if [ -f /usr/share/gitlab-runner/clear-docker-cache ]; then echo 'File exists'; else echo 'File does not exist'; fi"
File does not exist

v17.7.1 (last version where file is included in the image)

$ docker run --rm --entrypoint sh gitlab/gitlab-runner:v17.7.1 -c "if [ -f /usr/share/gitlab-runner/clear-docker-cache ]; then echo 'File exists'; else echo 'File does not exist'; fi"
File exists

Actual behavior

Could not find the file /usr/share/gitlab-runner/clear-docker-cache

Expected behavior

/usr/share/gitlab-runner/clear-docker-cache exists

Relevant logs and/or screenshots

see above

Environment description

N/A

Used GitLab Runner version

  • v17.8.0
  • v17.7.1

Possible fixes