Git Product home page Git Product logo

Comments (3)

naorlivne avatar naorlivne commented on May 24, 2024

Can confirm and reproduce, issue seems to be a that when starting the container as ["host"] network the docker inspect shows that it's configured as {"HostConfig": { "NetworkMode": "default"}} rather then {"HostConfig": { "NetworkMode": "host"}} which rather then connects to the host network means it's attempting to connect to a bridge network named "host".

I'm guessing that due to using the low level docker-py API (which do to complex needs in other parts of the system I don't see a way around) there must be another step needed to use an host network I missed.

from worker.

phynias avatar phynias commented on May 24, 2024

yeah, looking in the docker-py api docs it says you just have to set network_mode=host
¯_(ツ)_/¯

from worker.

naorlivne avatar naorlivne commented on May 24, 2024

Yep that really all it was, fixed it in 2.0.0a (which is the alpha feature branch for 2.0.0) so it will be added to 2.0.0 & master once 2.0.0 is ready to be merged and becomes the latest version.

from worker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.