Open ericis opened 7 years ago
For more info, the workaround is also documented at the bottom of this thread: https://forums.docker.com/t/spotify-docker-maven-plugin-cant-connect-to-localhost-2375/9093/12
If you are using docker for windows go to Docker -> Settings -> General Check Option “Expose daemon to tcp://localhost:2375 without TLS”
Actually, I'm not sure what the concrete issue is. Unfortunately I dont have a Windows box here for testing, but its seems like your environment variable DOCKER_HOST points to localhost:2375 which is only open when you check this option.
However, d-m-p also knows how to communictate via the standard named pipe exposed for Docker for Windows, so I wonder why it wants connect via TCP socket.
Description
cd ./gs-spring-boot-docker/complete
4a../mvnw install dockerfile:build
Step 4a fails when "Expose daemon on tcp://localhost:2375 without TLS" is unchecked (the default Docker settings).
However, Gradle command (step 4b) succeeds with this unchecked: 4b.
./gradlew build buildDocker
Info
Full Stack