Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30692

Can't use the default command from an image

XMLWordPrintable

      I want to use the command specified in the image when starting a container. When I set the "Container start command" option to empty, I get the following exception.

      Error response from daemon: Cannot start container 27ad97097540be6015b21554d0bddc280d28f4a601b8212ae2dd561fd0c6fcbb: [8] System error: exec: "": executable file not found in $PATH
      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:193)
      	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.startBuildContainer(DockerBuildWrapper.java:183)
      	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:158)
      	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:1738)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:381)
      

      See CMD and CMD (default command or options) for details.

            ndeloof Nicolas De Loof
            daspilker Daniel Spilker
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: