gitlab-ci-runner

How to run docker-compose inside docker in docker which runs inside gitlab-runner container?

泄露秘密 提交于 2020-08-27 06:04:29
问题 I have a gitlab runner inside a docker container, runs fine if I run an image like nginx. But now I tried to run docker in docker (dind) inside the gitlab runner and I want to run docker-compose inside the dind. Docker info runs fine, but if I try to run docker-compose I get an permission-denied error. I linked the /usr/local/bin/docker-compose file to the gitlab runner container and enter it in the volumes parameter in the runner config.toml file. If I try to run sudo it ends with an unknown