Step1. pull容器镜像
$ docker pull drone/drone-runner-docker:1点击复制复制失败已复制
Step2. 运行容器镜像
$ docker run --detach \ --volume=/var/run/docker.sock:/var/run/docker.sock \ --env=DRONE_RPC_PROTO=https \ --env=DRONE_RPC_HOST=drone.company.com \ --env=DRONE_RPC_SECRET=共享密钥 \ --env=DRONE_RUNNER_CAPACITY=2 \ --env=DRONE_RUNNER_NAME=my-first-runner \ --publish=3000:3000 \ --restart=always \ --name=runner \ drone/drone-runner-docker:1 点击复制复制失败已复制
提示
Step3. 验证
$ docker logs runner time="2021-10-27T06:44:16Z" level=info msg="starting the server" addr=":3000" time="2021-10-27T06:44:17Z" level=info msg="successfully pinged the remote server" time="2021-10-27T06:44:17Z" level=info msg="polling the remote server" arc