Comments on: Build and deploy Docker Image with Docker Maven plugin http://www.littlebigextra.com/build-deploy-docker-image-maven/ A technology blog covering topics on Java, Scala, Docker, AWS, BigData, DevOps and much more to come. Do it yourself instructions for complex to simple problems for a novice to an expert. Mon, 01 Jul 2019 23:31:24 +0000 hourly 1 https://wordpress.org/?v=5.2.5 By: Saugata Moitra http://www.littlebigextra.com/build-deploy-docker-image-maven/#comment-1373 Mon, 01 Jul 2019 23:31:24 +0000 http://littlebigextra.com/?p=451#comment-1373 Hi I am also facing the same problem. I am using Docker Toolbox, tried creating entry as suggested above, but no luck. Getting below error:

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.20.0:stop (start) on project spring-boot-docker: Cannot create docker access object: Cannot extract API version from server : Connect to 192.168.99.100:2375 [/192.168.99.100] failed: Connection refused: connect -> [Help 1]

Any help ?

]]>
By: Abhi http://www.littlebigextra.com/build-deploy-docker-image-maven/#comment-114 Wed, 06 Sep 2023 08:50:35 +0000 http://littlebigextra.com/?p=451#comment-114 I have implemented above in MAC-OS, so I am not fully aware of windows. But can you please use either or 2 below and see if that solves the problem.

  • tcp://localhost:2375
  • npipe:////./pipe/docker_engine

]]>
By: Johan http://www.littlebigextra.com/build-deploy-docker-image-maven/#comment-113 Tue, 05 Sep 2023 17:10:28 +0000 http://littlebigextra.com/?p=451#comment-113 Hi,
Great posts! Thank you.
I cannot run it because I get dockerHost errors. Please help.

When building this on Windows 10 Home, I get an error: No given, no DOCKER_HOST environment variable, no read/writable ‘/var/run/docker.sock’ or ‘//./pipe/docker_engine’ and no external provider like Docker machine configured.
I tried different dockerHosts, like unix:///var/run/docker.sock or localhost, but then I get errors like Execution default-cli of goal io.fabric8:docker-maven-plugin:0.21.0:build failed: An API incompatibility was encountered while executing io.
fabric8:docker-maven-plugin:0.21.0:build: java.lang.UnsatisfiedLinkError: unknown
[ERROR] —————————————————–
[ERROR] realm = plugin>io.fabric8:docker-maven-plugin:0.21.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Etc.
I really hope you can help.
Regards, J

]]>
By: Abhi http://www.littlebigextra.com/build-deploy-docker-image-maven/#comment-90 Tue, 08 Aug 2023 16:40:45 +0000 http://littlebigextra.com/?p=451#comment-90 Glad that it worked for you !!

]]>
By: Javi http://www.littlebigextra.com/build-deploy-docker-image-maven/#comment-89 Tue, 08 Aug 2023 15:45:54 +0000 http://littlebigextra.com/?p=451#comment-89 OMG… finally. Thank you very much for this solution!

]]>