Tag Archives: /bin/bash: line 118: docker: command not found

Gitlab Docker Auto Deploy Error: /bin/bash: line 118: docker: command not found

The reason is that we can’t find the docker. We need to bind the docker

List all gitlab runner configuration files

find/| grep config.toml

[root@izwz99pke7zxkpm7l51t8jz ~]# find/| grep config.toml
/srv/gitlab-runner/config/config.toml
/var/lib/docker/volumes/gitlab-runner-config/_data/config.toml
/var/lib/docker/overlay2/b06ff5242ee208ee1eaa4b205801ed5daa193056526c0a01ced53dd821d28f8a/diff/etc/gitlab-runner/config.toml
/var/lib/docker/overlay2/7e84218ced6b73451784136503a22c51af06aa417e78c5ba7c29239046e9b985/merged/etc/gitlab-runner/config.toml

Volumes “/usr/bin/docker:/usr/bin/docker”, “/var/run/docker.sock:/var/run/docker.sock”

vim /srv/gitlab-runner/config/config.toml

[root@izwz99pke7zxkpm7l51t8jz ~]# vim /srv/gitlab-runner/config/config.toml
volumes = ["/cache","/usr/bin/docker:/usr/bin/docker", "/var/run/docker.sock:/var/run/docker.sock"]