When I try to "mvn clean package docker:build" ,it is always show a Error "failed: connect timed out"
How to reproduce
1.Open the docker remote API port
vi /usr/lib/systemd/system/docker.service
After the code ExecStart=/usr/bin/dockerd , I add this code
-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
2.Execute command
Description
When I try to "mvn clean package docker:build" ,it is always show a Error "failed: connect timed out"
How to reproduce
1.Open the docker remote API port
vi /usr/lib/systemd/system/docker.service
After the codeExecStart=/usr/bin/dockerd
, I add this code-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
2.Execute commandAfterwards,
netstat -anp|grep 2375
curl 127.0.0.1:2375/info
mvn clean package docker:build
What do you expect
BUILD SUCCESS
What happened instead
Software:
Full backtrace