以debugging模式运行gitlab亚军does not工作

我试图在debugging模式下运行我的gitlab亚军:

  docker run --restart unless-stopped --volume / var / lib / gitlab-runner:/ etc / gitlab-runner \
   --volume /var/run/docker.sock:/var/run/docker.sock --detach \
   --name gitlab-runner gitlab / gitlab-runner:latest --debug

但是,当我试图获得地位,我总是有这样的:

 来自守护进程的错误响应:容器e3c3a58fdb5b5a2b06939280ddf2b17448cc9ef9fb221c752fa425a990b05f12正在重新启动,请等到容器运行 

如何将debugging模式设置为正在运行的运行器? 谢谢 !

在docker run命令中,image:tag之后的任何内容都是在启动时在容器中运行的命令。

你正在运行–debug,这将导致找不到命令。

使用这样的东西:

docker run --restart unless-stopped --volume /var/lib/gitlab-runner:/etc/gitlab-runner--volume /var/run/docker.sock:/var/run/docker.sock --detach --name gitlab-runner gitlab/gitlab-runner:latest gitlab-runner --debug <command>