spotify / docker-maven-plugin

INACTIVE: A maven plugin for Docker
Apache License 2.0
2.67k stars 575 forks source link

When I try to "mvn clean package docker:build" ,it is always show a Error "failed: connect timed out" #417

Closed fengcheZt closed 5 years ago

fengcheZt commented 5 years ago

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 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

systemctl daemon-reload  
systemctl start docker

Afterwards, netstat -anp|grep 2375 20190326160828

curl 127.0.0.1:2375/info image

  1. add a environment variable image and this is docker ip: image
  2. My pom.xml image
  3. I execute mvn clean package docker:build

What do you expect

BUILD SUCCESS

What happened instead

image

Software:

Full backtrace

image

fengcheZt commented 5 years ago

The problem is fixed, the reason is that the CentOS 7 's firewall is not closed

fengcheZt commented 5 years ago

But a another Error appear image