Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-20109

Docker Runner argument '--net=host' causes docker images to fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Answered
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Docker Runner, Windows
    • Labels:
      None

      Description

      When using Docker Runner to isolate builds on Windows images, such as openjdk:10-jdk-windowsservercore, running in Docker for Windows, the container will fail to start:

      13-Sep-2018 16:00:17 C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: network host not found.
      13-Sep-2018 16:00:17 Failed to start docker container df37fa8b-e94c-43a5-8d48-f7c4d90fd10c139396235

      Running the command directly without --net=host results in the container starting successfully. There is currently no way to prevent Docker Runner from using the --net=host argument.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mgardias Marcin Gardias
              Reporter:
              bsewell@atlassian.com Bob Sewell
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: