Skip to content
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

network access unavailable inside container with libcontainer for RHEL 6 #4668

Closed
lsm5 opened this issue Mar 14, 2014 · 6 comments · Fixed by #5115
Closed

network access unavailable inside container with libcontainer for RHEL 6 #4668

lsm5 opened this issue Mar 14, 2014 · 6 comments · Fixed by #5115

Comments

@lsm5
Copy link
Contributor

lsm5 commented Mar 14, 2014

libcontainer doesn't seem to work well for RHEL 6 based systems. Need to revert to lxc on them to access network inside container. https://github.com/lsm5/docker-io/blob/master/docker-0.9-el6-lxc.patch

@lsm5
Copy link
Contributor Author

lsm5 commented Mar 14, 2014

/cc @maxamillion

@maxamillion
Copy link
Contributor

#4772

@crosbymichael
Copy link
Contributor

Do we know why it is failing? I'm guessing the netlink calls on the rhel kernel.

@alexlarsson
Copy link
Contributor

It seems a bit hacky to just revert to lxc. libcontainer should be able to work as well (or better) as lxc, as it uses essentially the same things.

@maxamillion
Copy link
Contributor

It fails, it provides no networking. I didn't know enough about libcontainer (I'm just a packager in docker space, have little exposure to the code base thus far) so I reverted to what worked. If libcontainer is meant to function on RHEL6 then that's likely a separate issue all together.

@yawn
Copy link

yawn commented Mar 27, 2014

This is probably the same issue as #4711 - the same issue also contains a (somewhat messy) workaround

alexlarsson added a commit to alexlarsson/docker that referenced this issue Apr 9, 2014
It seems that netlink in older kernels, including RHEL6, does not
support RTM_SETLINK with IFLA_MASTER. It just silently ignores it, reporting
no error, causing netlink.NetworkSetMaster() to not do anything yet
return no error.

We fix this by introducing and using AddToBridge() in a very similar manner
to CreateBridge(), which use the old ioctls directly.

This fixes moby#4668

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
unclejack pushed a commit to unclejack/moby that referenced this issue Apr 15, 2014
It seems that netlink in older kernels, including RHEL6, does not
support RTM_SETLINK with IFLA_MASTER. It just silently ignores it, reporting
no error, causing netlink.NetworkSetMaster() to not do anything yet
return no error.

We fix this by introducing and using AddToBridge() in a very similar manner
to CreateBridge(), which use the old ioctls directly.

This fixes moby#4668

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
crosbymichael pushed a commit to docker-archive/libcontainer that referenced this issue Jun 10, 2014
It seems that netlink in older kernels, including RHEL6, does not
support RTM_SETLINK with IFLA_MASTER. It just silently ignores it, reporting
no error, causing netlink.NetworkSetMaster() to not do anything yet
return no error.

We fix this by introducing and using AddToBridge() in a very similar manner
to CreateBridge(), which use the old ioctls directly.

This fixes moby/moby#4668

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
shykes pushed a commit to shykes/docker-dev that referenced this issue Oct 2, 2014
It seems that netlink in older kernels, including RHEL6, does not
support RTM_SETLINK with IFLA_MASTER. It just silently ignores it, reporting
no error, causing netlink.NetworkSetMaster() to not do anything yet
return no error.

We fix this by introducing and using AddToBridge() in a very similar manner
to CreateBridge(), which use the old ioctls directly.

This fixes moby/moby#4668

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
shykes pushed a commit to shykes/docker-dev that referenced this issue Oct 2, 2014
It seems that netlink in older kernels, including RHEL6, does not
support RTM_SETLINK with IFLA_MASTER. It just silently ignores it, reporting
no error, causing netlink.NetworkSetMaster() to not do anything yet
return no error.

We fix this by introducing and using AddToBridge() in a very similar manner
to CreateBridge(), which use the old ioctls directly.

This fixes moby/moby#4668

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
hamo added a commit to hamo/docker that referenced this issue May 20, 2016
moby#4668
It seems that netlink in older kernels, including RHEL6, does not
support RTM_SETLINK with IFLA_MASTER. It just silently ignores it,
reporting
no error, causing netlink.NetworkSetMaster() to not do anything yet
return no error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants