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

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

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: Low Low
    • None
    • None
    • Docker Runner, Windows
    • None

      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.

            [BAM-20109] Docker Runner argument '--net=host' causes docker images to fail

            Martyna Wojtas (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 563142 ]
            Marcin Gardias made changes -
            Assignee New: Marcin Gardias [ mgardias ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 2827061 ] New: JAC Bug Workflow v3 [ 3385816 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Foong (Inactive) made changes -
            Link New: This issue relates to BAM-20219 [ BAM-20219 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Pawel Skierczynski made changes -
            Resolution New: Answered [ 9 ]
            Status Original: Needs Triage [ 10030 ] New: Resolved [ 5 ]

            Pawel Skierczynski added a comment - - edited

            Docker runner is not supported on Windows platform (https://confluence.atlassian.com/bamboo/docker-runner-946020207.html). It's non negligible effort to do it right. We can gather interest with improvement issue.

            Pawel Skierczynski added a comment - - edited Docker runner is not supported on Windows platform ( https://confluence.atlassian.com/bamboo/docker-runner-946020207.html ). It's non negligible effort to do it right. We can gather interest with improvement issue.
            Alexey Chystoprudov made changes -
            Component/s New: Docker Runner [ 51690 ]
            Component/s New: Windows [ 13990 ]
            Bob Sewell (Inactive) made changes -
            Description New: 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.
            Bob Sewell (Inactive) created issue -

              mgardias Marcin Gardias
              bsewell@atlassian.com Bob Sewell (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: