Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18788

Docker port variable is null when host port is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Low Low
    • None
    • None
    • None
    • None

      Summary

      Docker port variable is null when a port mapping is added with no host port (implicit port, docker will bind the container port to whatever it finds available on the host).

      Steps to Reproduce

      1. Create a Bamboo plan with a Docker task with the below config:
        • Command: Run a docker container
        • Detach container [x]
        • Add a port mapping: Host empty, Container: 8085
        • Wait for service to start [x]
        • Service URL pattern: http://localhost:${docker.port}
      2. Run a build

      Expected Results

      Host port is found and tested successfully during build.

      Actual Results

      25-Oct-2017 12:11:58	Attempting connection to http://localhost:null
      25-Oct-2017 12:11:58	Failed connecting to http://localhost:null, error: invalid port number
      

      Workaround

      None

              Unassigned Unassigned
              jowen@atlassian.com Jeremy Owen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: