maven package docker:build - connection refused

后端 未结 10 2084
梦谈多话
梦谈多话 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:37

    Below change fixed my issue on OSX El Capitan, Docker Version 1.12.1 (build: 12133):

    export DOCKER_HOST=unix:///var/run/docker.sock
    

    Please restart docker if mvn package docker:build still fails.

提交回复
热议问题