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

前端 未结 8 1901
[愿得一人]
[愿得一人] 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.

    0 讨论(0)
  • 2021-02-12 21:17

    I had the same issue with Jenkins.

    Added jenkins to docker group

    sudo usermod -aG docker jenkins
    

    Then restrat jenkins.

    0 讨论(0)
提交回复
热议问题