maven package docker:build - connection refused

后端 未结 10 2106
梦谈多话
梦谈多话 2021-02-07 05:06

I am trying to directly build a docker image with maven with mvn package docker:build.

Docker is running and docker ps shows me my containers,

10条回答
  •  情话喂你
    2021-02-07 05:43

    In ubuntu 16.04, I solved it with:

    DOCKER_HOST=unix:///var/run/docker.sock mvn clean install 
    

提交回复
热议问题