org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.15.10:stop (docker-clean) on project qmr-launch: Unable to retrieve container name for [qmr-launch]

GitHub | rutherfordjw | 3 months ago
  1. 0

    GitHub comment 522#247132032

    GitHub | 3 months ago | rutherfordjw
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.15.10:stop (docker-clean) on project qmr-launch: Unable to retrieve container name for [qmr-launch]
  2. 0

    docker:push fails with Unable to add tag / no such id / Not found: 404

    GitHub | 1 month ago | johnplanow
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.15.11:push (docker-push) on project my-api-docker: Unable to add tag [repo.int.company.com:5002/com/company/services/my-api:feature-YS12345] to image [com/company/services/my-api:feature-US12345]

    Root Cause Analysis

    1. io.fabric8.maven.docker.access.hc.http.HttpRequestException

      No such container: qmr-launch (Not Found: 404)

      at io.fabric8.maven.docker.access.hc.ApacheHttpClientDelegate$StatusCodeCheckerResponseHandler.handleResponse()
    2. io.fabric8.maven
      ApacheHttpClientDelegate$StatusCodeCheckerResponseHandler.handleResponse
      1. io.fabric8.maven.docker.access.hc.ApacheHttpClientDelegate$StatusCodeCheckerResponseHandler.handleResponse(ApacheHttpClientDelegate.java:172)
      1 frame
    3. Apache HttpClient
      CloseableHttpClient.execute
      1. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
      2. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)
      3. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)
      3 frames
    4. io.fabric8.maven
      AbstractDockerMojo.execute
      1. io.fabric8.maven.docker.access.hc.ApacheHttpClientDelegate.get(ApacheHttpClientDelegate.java:58)
      2. io.fabric8.maven.docker.access.hc.DockerAccessWithHcClient.inspectContainer(DockerAccessWithHcClient.java:245)
      3. io.fabric8.maven.docker.service.QueryService.getContainer(QueryService.java:54)
      4. io.fabric8.maven.docker.StopMojo.getContainersToStop(StopMojo.java:88)
      5. io.fabric8.maven.docker.StopMojo.stopContainers(StopMojo.java:74)
      6. io.fabric8.maven.docker.StopMojo.executeInternal(StopMojo.java:62)
      7. io.fabric8.maven.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:190)
      7 frames
    5. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      1 frame
    6. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      10 frames
    7. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames