java.lang.RuntimeException: Failed to stop docker container 3cb8a71ab5e15d4c872ff4f30ab3c409561dcdfe207b1e0977c3ecde8cc1225e

GitHub | jerrinot | 4 months ago
  1. 0

    GitHub comment 8752#241724827

    GitHub | 4 months ago | jerrinot
    java.lang.RuntimeException: Failed to stop docker container 3cb8a71ab5e15d4c872ff4f30ab3c409561dcdfe207b1e0977c3ecde8cc1225e
  2. 0

    in https://github.com/jenkinsci/docker-custom-build-environment-plugin/blob/docker-custom-build-environment-1.6.0/src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java#L192, the {{getDocker0Ip}} method is using {{ifconfig docker0}} but the result cannot be used in https://github.com/jenkinsci/docker-custom-build-environment-plugin/blob/docker-custom-build-environment-1.6.0/src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java#L164 for the docker command {{--add-host}} parameter. {noformat} $ ifconfig docker0 invalid value "dockerhost:flags=4099<UP,BROADCAST,MULTICAST>" for flag --add-host: invalid IP address in add-host: "flags=4099<UP,BROADCAST,MULTICAST>" See 'docker run --help'. FATAL: Failed to run docker image java.lang.RuntimeException: Failed to run docker image at com.cloudbees.jenkins.plugins.docker_build_env.Docker.runDetached(Docker.java:186) at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.startBuildContainer(DockerBuildWrapper.java:176) at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:151) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Finished: FAILURE {noformat}

    Jenkins JIRA | 1 year ago | Adrien Lecharpentier
    java.lang.RuntimeException: Failed to run docker image
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [JENKINS-35025] Container command '/bin/cat' not found or does not exist - Jenkins JIRA

    jenkins-ci.org | 5 months ago
    java.lang.RuntimeException: Failed to run docker image

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to stop docker container 3cb8a71ab5e15d4c872ff4f30ab3c409561dcdfe207b1e0977c3ecde8cc1225e

      at com.cloudbees.jenkins.plugins.docker_build_env.Docker.kill()
    2. com.cloudbees.jenkins
      DockerBuildWrapper$1.tearDown
      1. com.cloudbees.jenkins.plugins.docker_build_env.Docker.kill(Docker.java:144)
      2. com.cloudbees.jenkins.plugins.docker_build_env.BuiltInContainer.tearDown(BuiltInContainer.java:70)
      3. com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper$1.tearDown(DockerBuildWrapper.java:183)
      3 frames
    3. Hudson
      Executor.run
      1. hudson.model.Build$BuildExecution.doRun(Build.java:173)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:544)
      3. hudson.model.Run.execute(Run.java:1738)
      4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      5. hudson.model.ResourceController.execute(ResourceController.java:98)
      6. hudson.model.Executor.run(Executor.java:410)
      6 frames