Comments (4)
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.
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.
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.
So there's 2 DNS settings
- the Container configuration
- 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)
- Uninstallation Process HOT 1
- Add possibility to have a custom named Dockerfile HOT 1
- Add runtime docker agent template container option
- Can't make plugin to work over unix socket HOT 18
- Dynamic provision of Docker Agent Templates HOT 14
- can not get container id if the Jenkins is running in a podman HOT 4
- Client certificate doesn't provide to remote docker daemon HOT 1
- NPE in DockerComputerJNLPConnector.beforeContainerCreated starting with Jenkins 2.437 HOT 9
- Docker cloud does not show credentials dropdown HOT 1
- Support to connect to docker/podman socket via SSH tunnel HOT 2
- Docker.inside() sh block doesn't wait until "$@" is executed
- Unable to run Jenkins build node if I set "User Jenkins" in the dockerfile HOT 11
- No logs when using awslogs log driver
- Deprecated value in DEFAULT_ENTRY_POINT_ARGUMENTS
- Is there a way to add build time options like --add-host?
- uninstallation pending HOT 1
- Pipeline withDockerContainer() report an Error:Cannot run program "docker": error=2, No such file or directory HOT 1
- Add Instance Number to Environment Variables
- Support for sysctl settings
- Introduce how to use this plugin in a Pipeline HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-plugin.