Closed EndOfMaster closed 6 years ago
Without knowing what is in C:\Users\wzmwz\.dockercfg
or what is in your pom.xml we can't really offer any suggestions. Have you seen the section of the README that covers this? https://github.com/spotify/docker-maven-plugin#using-with-private-registries
this is my pom about docker plugin
com.spotify docker-maven-plugin 1.0.0 registry.cn-beijing.aliyuncs.com/jifenke-wzm/jifenke-back:${maven.build.timestamp} src/main/docker / ${project.build.directory} ${project.build.finalName}.war docker-aliyun-wzm registry.cn-beijing.aliyuncs.com ../docker true src/main/docker **/Dockerfile
Is this still an issue with the latest version?
Have been repaired
whats the fix? I'm having similar situation
16:00:38 [DEBUG] /apps/home/jenkins/.docker/ca.pem, /apps/home/jenkins/.docker/key.pem or /apps/home/jenkins/.docker/cert.pem does not exist, not using SSL 16:00:38 [DEBUG] Using configfile: /apps/home/jenkins/.dockercfg 16:00:38 [DEBUG] Failed to load Google application default credentials 16:00:38 java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. 16:00:38 at com.google.auth.oauth2.DefaultCredentialsProvider.getDefaultCredentials(DefaultCredentialsProvider.java:111) 16:00:38 at com.google.auth.oauth2.GoogleCredentials.getApplicationDefault(GoogleCredentials.java:103) 16:00:38 at com.google.auth.oauth2.GoogleCredentials.getApplicationDefault(GoogleCredentials.java:76) 16:00:38 at com.spotify.docker.AbstractDockerMojo.googleContainerRegistryAuthSupplier(AbstractDockerMojo.java:352) 16:00:38 at com.spotify.docker.AbstractDockerMojo.authSupplier(AbstractDockerMojo.java:285) 16:00:38 at com.spotify.docker.AbstractDockerMojo.buildDockerClient(AbstractDockerMojo.java:178) 16:00:38 at com.spotify.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:148) 16:00:38 at com.spotify.docker.BuildMojo.execute(BuildMojo.java:324) 16:00:38 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) 16:00:38 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 16:00:38 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 16:00:38 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 16:00:38 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) 16:00:38 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) 16:00:38 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 16:00:38 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) 16:00:38 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) 16:00:38 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) 16:00:38 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) 16:00:38 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) 16:00:38 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) 16:00:38 at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 16:00:38 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:00:38 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 16:00:38 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 16:00:38 at java.lang.reflect.Method.invoke(Method.java:497) 16:00:38 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 16:00:38 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 16:00:38 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 16:00:38 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 16:00:38 [INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier] 16:00:38 [DEBUG] Not using any build profile
May I ask how you fixed it
Is it possible to share the fix on this issue?
I have the exact same issue with version 1.2.0 and hope to turn that off
Unable Push
[The originally available push, suddenly unusable]
I don't know how to reappear
[Add steps on how to reproduce this issue]
I expect to be able to push
Software:
Server: Version: 17.09.1-ce API version: 1.32 (minimum version 1.12) Go version: go1.8.3 Git commit: 19e2cf6 Built: Thu Dec 7 22:28:28 2017 OS/Arch: linux/amd64 Experimental: false]
Full backtrace