What is happening when docker-maven plugin tries to build image?

前端 未结 8 1912
[愿得一人]
[愿得一人] 2021-02-12 20:40

I am running Jenkins in a docker container and Jenkins tries to run my maven build. As part of the build, the docker maven plugin instructs it to build a docker image.

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-12 21:16

    As mentioned above by Rajith Delantha, this solved the problem for me:

    Add: DOCKER_OPTS=' -G jenkins' directly in /etc/default/docker.

    Then restart docker service by sudo service docker restart.

提交回复
热议问题