java - Boot2Docker TLS issue with buildDocker -
i exploring docker deploy dockerized java sample project on windows7 using boot2docker. when building dockerized java app using command ./gradlew build builddocker
. getting issue follows:
execution failed task ':builddocker'. > javax.net.ssl.sslpeerunverifiedexception: peer not authenticated
my build.gradle
file had docker settings follows:
docker { useapi true hosturl 'https://192.168.59.103:2376' }
i searched probable solution same , got link. tried both workarounds none working me. first approach i.e. changing profile , tried building again project failed above error.
in second workaround, tried install , run
$(docker run sequenceiq/socat)
the command downloaded package , runned well. when tried check running images using command docker ps
, nothing came in result set.
after tried pinging using curl http://192.168.59.103:2375/_ping
returned error curl: (7) failed connect 192.168.59.103 port 2375: connection refused
anyway changed docker configuration in build.gradle
file follows:
docker { useapi true hosturl 'http://192.168.59.103:2375' }
and run build command i.e. ./gradlew build builddocker
again below error:
execution failed task ':builddocker'. > org.apache.http.conn.httphostconnectexception: connection http://192.168.59 .103:2375 refused.
so seems both workaround not working me. 1 faced same , have clue missing here.
Comments
Post a Comment