Code Monkey home page Code Monkey logo

Comments (4)

magnayn avatar magnayn commented on June 27, 2024

It's being set, but for some reason the latest version of Docker seems to ignore this.
It was working on 0.7.x, but isn't on 0.10.x.

You can see the DNS being sent in the JSON that's logged to the console

I worked around in the short term by adding a --dns entry into DOCKER_OPTS

from docker-plugin.

magnayn avatar magnayn commented on June 27, 2024

Docker has changed, this is now part of HostConfig.
Made change to jDocker and added fix here, is in -master / next release.

from docker-plugin.

thomassuckow avatar thomassuckow commented on June 27, 2024

I am still having trouble where leaving the field blank gives unexpected defaults in 0.3.5
HostConfig{..., "Dns": null} results in the container inheriting the hosts settings, which for me is desirable as the network restricts what can be used for dns.

However, docker-plugin seems to at a minimum send "Dns": [""] which gives the problem described by OP. I think null is the more reasonable default, and if the user does not want to have dns they can put a space or random ip in the box.

from docker-plugin.

magnayn avatar magnayn commented on June 27, 2024

So there's 2 DNS settings

  1. the Container configuration
  2. the Host configuration (used to spin up the container).

In the docker API, (1) now seems to be deprecated. (2) is new, and therefore not supported on all docker versions. For the sakes of backwards compatibility, the plugin sets both.

Now that docker has apparently officially gone 1.0, we should probably move to remove (1) altogether.

from docker-plugin.

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.