https://bugzilla.redhat.com/show_bug.cgi?id=1121100
Bug ID: 1121100 Summary: allow docker run --net=none --hostname=.... Product: Fedora EPEL Version: el6 Component: docker-io Severity: medium Assignee: lsm5@fedoraproject.org Reporter: gilles.gouaillardet@gmail.com QA Contact: extras-qa@fedoraproject.org CC: admiller@redhat.com, golang@lists.fedoraproject.org, hushan.jia@gmail.com, jperrin@centos.org, lsm5@fedoraproject.org, mattdm@redhat.com, mgoldman@redhat.com, s@shk.io, vbatts@redhat.com
Currently, docker run will fail if both --net=none and --hostname=... options are used.
This has been fixed in the docker git repository : https://github.com/ggouaillardet/docker/commit/f411f8bfc5d04aed6499dfc90e357...
could you please backport this fix to docker-io for epel-6 ?
Thanks and regards,
Gilles
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
--- Comment #1 from Marek Goldmann mgoldman@redhat.com --- Hi Gilles,
This will be available once version v1.1.1 (or later) will be packaged for EPEL6. Or is there a plan to backport it? Lokesh?
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
--- Comment #2 from Lokesh Mandvekar lsm5@fedoraproject.org --- Bug 1118603 does track some new dependencies which are needed for 1.1.1 which will need to get completed.
Vincent: ping
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
--- Comment #3 from Gilles Gouaillardet gilles.gouaillardet@gmail.com --- Hi Marek and all,
the latest CentOS 7 (and hence RHEL 7 i guess) also does not support both --net=none and --hostname=...
as a side note, and thought i was able to rebuild docker on CentOS 7, i initially failed rebuilding docker-io on CentOS 6 :
# rpmbuild -ba SPECS/docker-io.spec error: Failed build dependencies: golang(github.com/gorilla/mux) >= 0-0.13 is needed by docker-io-1.0.0-7.el6.x86_64 golang(github.com/kr/pty) >= 0-0.19 is needed by docker-io-1.0.0-7.el6.x86_64 golang(github.com/coreos/go-systemd) >= 2-1 is needed by docker-io-1.0.0-7.el6.x86_64 golang(github.com/syndtr/gocapability/capability) >= 0-0.7 is needed by docker-io-1.0.0-7.el6.x86_64
if i rpmbuild --nodeps ..., docker fails to start a container (error message is "Invalid argument")
if i update from the required packages from epel-testing repo, then it works fine.
i initially tried to workaround this issue by using --lxc-conf="lxc.utsname = ..." instead of --hostnane=... but the first option had no effect (e.g. the host name was automatically generated by docker)
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |dwalsh@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
--- Comment #4 from Gilles Gouaillardet gilles.gouaillardet@gmail.com --- one more note ... after applying the patch, the /etc/hosts of the container is invalid : the ip address of the host is a dynamic one (e.g. the one that would have been used without --net=none --lxc-conf= ...) instead of the one passed on the command line with --lxc-conf="lxc.network.ipv4 = a.b.c.d"
as a work around, i configured a dns and the container /etc/nsswitch.conf to use dns only
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
--- Comment #5 from Lokesh Mandvekar lsm5@fedoraproject.org --- Gilles, could you check if docker 1.1.2 takes care of this bug?
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
--- Comment #6 from Gilles Gouaillardet gilles.gouaillardet@gmail.com --- docker 1.1.2 does take care of the initially reported bug
that being said, the /etc/hosts is incorrectly generated. if run several times in a row docker run ... grep myhostname /etc/hosts
then i always get a different result/ip which is different from the one i requested via --lxc-conf="lxc.network.ipv4=..."
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
Lokesh Mandvekar lsm5@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|lsm5@fedoraproject.org | Assignee|lsm5@fedoraproject.org |lsm5@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1121100
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2014-11-20 14:36:52
--- Comment #7 from Daniel Walsh dwalsh@redhat.com --- Please open a bug for your second issue.
Fixed in docker-1.1.2
golang@lists.fedoraproject.org