version: '3' services: # https://blog.csdn.net/fengtao0821/article/details/110526941 gitlab-runner: image: gitlab/gitlab-runner restart: always container_name: gitlab-runner user: root privileged: true volumes: - ./config:/etc/gitlab-runner - /var/run/docker.sock:/var/run/docker.sock