I have docker toolbox installed and also set the Path variables for with the output of the command “docker-machine env --shell cmd default” in cmd.
But i am getting error while i rum this the command
"mvn package docker:build"
The error is the following
[INFO] Building image tcn
[DEBUG] Auth Config null
[DEBUG] Registry Config Json {"":{“serveraddress”:"",“password”:"",“auth”:"",“em
ail”:"",“username”:""}}
[DEBUG] Registry Config Encoded eyIiOnsic2VydmVyYWRkcmVzcyI6IiIsInBhc3N3b3JkIjoi
IiwiYXV0aCI6IiIsImVtYWlsIjoiIiwidXNlcm5hbWUiOiIifX0=
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.503 s
[INFO] Finished at: 2016-02-12T18:04:54+05:30
[INFO] Final Memory: 29M/372M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.3.9:build (defa
ult-cli) on project tcn: Exception caught: Request error: POST https://192.168.9
9.100:2376/build?t=tcn: 500: HTTP 500 Internal Server Error -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal c
om.spotify:docker-maven-plugin:0.3.9:build (default-cli) on project tcn: Excepti
on caught
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception caught
at com.spotify.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java
:115)
at com.spotify.docker.BuildMojo.execute(BuildMojo.java:81)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
… 19 more
Caused by: com.spotify.docker.client.DockerRequestException: Request error: POST
https://192.168.99.100:2376/build?t=tcn: 500
at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDocker
Client.java:1218)
at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerCl
ient.java:1178)
at com.spotify.docker.client.DefaultDockerClient.build(DefaultDockerClie
nt.java:915)
at com.spotify.docker.client.DefaultDockerClient.build(DefaultDockerClie
nt.java:877)
at com.spotify.docker.BuildMojo.buildImage(BuildMojo.java:524)
at com.spotify.docker.BuildMojo.execute(BuildMojo.java:314)
at com.spotify.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java
:113)
… 22 more
Caused by: com.spotify.docker.client.shaded.javax.ws.rs.InternalServerErrorExcep
tion: HTTP 500 Internal Server Error
at org.glassfish.jersey.client.JerseyInvocation.convertToException(Jerse
yInvocation.java:1002)
at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocati
on.java:799)
at org.glassfish.jersey.client.JerseyInvocation.access$500(JerseyInvocat
ion.java:91)
at org.glassfish.jersey.client.JerseyInvocation$5.completed(JerseyInvoca
tion.java:760)
at org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRunti
me.java:197)
at org.glassfish.jersey.client.ClientRuntime.access$300(ClientRuntime.ja
va:78)
at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:17
9)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(Request
Scope.java:340)
at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:20
9)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:745)
But while i run docker version, it shows correct output
Please help where i am missing something