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

Ability to run Docker container in foreground mode (no detached)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • docker-workflow-plugin
    • None
    • Jenkins 2.73.3

      Currently we can only use Pipeline Docker Plugin to run container in detached mode.
      withRun(), run(), inside() methods add "-d" option in docker run command line.
      We should be able to run container in foreground mode (not detached).
      Currently we want to run CloudSlang flow through docker image and see the flow output in Jenkins:

      docker run --rm cloudslang/cloudslang run --f ../content/io/cloudslang/base/print/print_text.sl --i text=first_flow

      We are not able to see the output of the command since docker pipeline step is run in detached mode and exit when the CloudSlang flow terminate.

            aduprat Antoine Duprat
            lautou Laurent TOURREAU
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: