New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
270_use_name_as_hostname_test fails on Docker 1.11.0-rc4 #2140
Comments
Small correction: we get the trailing dot, because |
Are you sure?
(Though this doesn't show a trailing dot either) |
Interesting. I'm starting a container with $ ./weave run --name=c2 -t alpine /bin/sh
81c8bb64a812134e25ef41e6a322bb4f080c03a430f1bc5e92b35d0ad1d05f5e
$ docker inspect --format={{.Config.Domainname}} c2
$ docker inspect --format={{.Config.Hostname}} c2
c2.weave.local
$ ./weave run --name=c3 -h c3-hostname.weave.local -t alpine /bin/sh
7dd6922a4024134399aef9fcd650115853fe1f77eb2b05630b9cb948ef324c48
$ docker inspect --format={{.Config.Hostname}} c3
c3-hostname.weave.local
$ docker inspect --format={{.Config.Domainname}} c3
However, when I start with |
To recap, the problem is that moby/moby#20200 removes splitting of hostname (https://github.com/docker/docker/pull/20200/files#diff-555969c76e0ae264bc1e3c8e880cb50cL247) into When we start a container with After inspecting the weave codebase and checking the output of
Thoughts? |
As it is described in #2140, the trailing dot might appear when starting a container via "weave run".
As it is described in #2140, the trailing dot might appear when starting a container via "weave run".
As it is described in #2140, the trailing dot might appear when starting a container via "weave run".
tested with Weave 1.4.6 and 1.4 head.
The reason is that the
{{.Config.Domainname}}
innow contains a trailing dot, presumably due to moby/moby#20200.
I am hoping that this is just a problem with the test and that the weave code itself is fine. We do inspect the domain name in a few places, so need to check those carefully for any possible problems not caught by the tests.
The text was updated successfully, but these errors were encountered: