• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • docker-plugin
    • None

      When we use the network field to host, the port binding throw a NullPointerException. This is because the docker-java does provide an empty Ports value in that case.

      I opened an issue on docker-java side: https://github.com/docker-java/docker-java/issues/753

          [JENKINS-40253] NPE when using network=host

          Could you please describe your use-case ? Why do you need to use host network ? 

          This will break isolation between containers running on this dockerhost.

          Nicolas De Loof added a comment - Could you please describe your use-case ? Why do you need to use host network ?  This will break isolation between containers running on this dockerhost.

          pjdarton added a comment -

          Closing due to lack of response.

          pjdarton added a comment - Closing due to lack of response.

            Unassigned Unassigned
            alecharp Adrien Lecharpentier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: