Bug 1214464 - Unable to use --net=container on RHEL 6.6
Summary: Unable to use --net=container on RHEL 6.6
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: docker-io
Version: el6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Sally
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-22 18:41 UTC by Paul Webster
Modified: 2019-05-20 11:45 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-21 03:25:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Failure logs when docker can't attach to the second container (11.59 KB, text/plain)
2015-04-23 13:28 UTC, Paul Webster
no flags Details
Failure log with docker-io 1.5.0 (51.62 KB, text/plain)
2015-04-24 12:07 UTC, Paul Webster
no flags Details

Description Paul Webster 2015-04-22 18:41:00 UTC
Description of problem:

I can't use the --net=container option on a second container.  I get an error and the container fails to start


Version-Release number of selected component (if applicable):
docker-io-1.4.1-3.el6.x86_64
RHEL 6.6
kernel-2.6.32-504.12.2.el6.x86_64

How reproducible: 100%


Steps to Reproduce:
1. Start up the first container
bash$ docker run -ti --name=target fedora /bin/bash

2. start up the second container in another xterm
bash$ docker run -ti --rm  --net=container:target  fedora /bin/bash


Actual results:

It spits out an error:
setup networking failed to setns current network namespace: invalid argumentFATA[0002] Error response from daemon: Cannot start container ac211304b75a4fca4839739e9769ded6e4fb61aa74bf9e862499aed09b12c3c6: setup networking failed to setns current network namespace: invalid argument 


Expected results:
It just fires up the second container.

Additional info:

Comment 1 Paul Webster 2015-04-23 13:28:28 UTC
Created attachment 1018016 [details]
Failure logs when docker can't attach to the second container

This log occurs during the second container run command:
First container:
bash-4.1$ docker run -ti --name=target ubuntu /bin/bash
root@45edefd42404:/# 
 
Second container:
bash-4.1$  docker run -ti --rm --net=container:target ubuntu /bin/bash
setup networking failed to setns current network namespace: invalid argumentFATA[0002] Error response from daemon: Cannot start container ba28e4f14f4b3c2d7b94aa4b0cca8f5b70e6b354842818fe77b31885acc77461: setup networking failed to setns current network namespace: invalid argument

Comment 2 Paul Webster 2015-04-24 12:07:01 UTC
Created attachment 1018436 [details]
Failure log with docker-io 1.5.0

I took an update to docker-io-1.5.0-1.el6.x86_64 yesterday but it still fails with the invalid argument message:

bash-4.1$ docker run -ti --name=target ubuntu /bin/bash
root@e90fa60b6c8e:/# 

bash-4.1$ docker run -ti --rm --net=container:target ubuntu /bin/bash
FATA[0001] Error response from daemon: Cannot start container 2502130ff859150aa7f9cd28b0e50f495df1f6ecf9c14ce8abf606a2d806df25: invalid argument 

I've attached the new failure log from docker -d -D.

PW

Comment 3 Daniel Walsh 2015-06-03 12:15:22 UTC
Sally can you check if this fails on current docker?  docker-1.6.2 or docker-1.7

Comment 4 Sally 2015-07-04 12:45:49 UTC
1st term:
$ docker run -ti --name=target fedora /bin/bash
[root@b2d4337ae33f /]#

2nd term:
$ docker run -ti --rm  --net=container:target  fedora /bin/bash
[root@b2d4337ae33f /]#

No errors, running docker 1.8.0-dev

Comment 5 Sally 2015-07-06 14:20:00 UTC
Since docker 1.7 won't run on RHEL/Centos 6.6 (needs kernel upgrade)without a LOT of tweeking, should we close this bug? I verified the above running on Fedora 21.

Comment 6 Lokesh Mandvekar 2015-07-06 14:50:33 UTC
I think this would be a 'CLOSED CANTFIX' :( see: https://github.com/docker/docker/issues/14365

Comment 7 Paul Webster 2015-07-06 15:26:16 UTC
Doesn't the github issue state that docker 1.7.x should work on RHEL6?  How is it possible to pick that up?

PW

Comment 8 Paul Webster 2015-07-06 15:26:47 UTC
Even docker 1.6.x would be an improvement.

Comment 9 Lokesh Mandvekar 2015-07-06 16:08:23 UTC
Paul, RE: 1.6.x could you please try running this build: https://kojipkgs.fedoraproject.org//packages/docker-io/1.6.2/3.el6/x86_64/docker-io-1.6.2-3.el6.x86_64.rpm it's yet to land in the testing repos.

Also copying wolfy, who built the latest update, but not sure if he's noticed this bug.

Comment 10 Sally 2015-07-06 17:24:07 UTC
Lokesh, this works for me.  Thanks.  Also the output from comment 4 is confirmed running:

docker 1.6.2  on Centos 6.6, kernel 2.6.32-504.23.4.el6.x86_64

Comment 11 manuel wolfshant 2015-07-06 22:26:35 UTC
If the package seems fine to you, please wait for it to land in epel-testing and then pay a visit to https://admin.fedoraproject.org/updates/docker-io-1.6.2-3.el6 and provide karma. TIA.

Comment 12 Paul Webster 2015-07-07 13:13:33 UTC
(In reply to manuel wolfshant from comment #11)
> If the package seems fine to you, please wait for it to land in epel-testing
> and then pay a visit to
> https://admin.fedoraproject.org/updates/docker-io-1.6.2-3.el6 and provide
> karma. TIA.

I'll keep my eye out for it.

Thanks,
Paul

Comment 13 Paul Webster 2015-07-07 17:10:46 UTC
This still doesn't work for me:
bash-4.1$ docker run -ti --name=target ubuntu /bin/bash
root@191130b5ddb8:/# 

bash-4.1$ docker run -ti --rm --net=container:target ubuntu /bin/bash
FATA[0002] Error response from daemon: Cannot start container 37ae928a6bb99941bc3c0ef02276fb5c5d93b71343d44604f3a513262fbf3523: [8] System error: invalid argument 

kernel-2.6.32-504.23.4.el6.x86_64
docker-io-1.6.2-3.el6.x86_64

What other packages should I look to so I can verify their version numbers?

Comment 14 Sally 2015-07-08 16:25:13 UTC
I'm running docker (Docker version 1.6.2, build 7c8fca2/1.6.2) 
installed on Centos 6.6 kernel: 2.6.32-504.23.4.el6.x86_64

First, I removed current Docker with:
$ yum list installed | grep docker
$ sudo yum -y remove <output from above> 

I then installed Docker by using the build from Comment 9:

$ curl -O -sSL https://kojipkgs.fedoraproject.org//packages/docker-io/1.6.2/3.el6/x86_64/docker-io-1.6.2-3.el6.x86_64.rpm

$ sudo yum localinstall --nogpgcheck docker-io-1.6.2-3.el6.x86_64.rpm

$ sudo service docker start
 
Then the cmds in Comment 13 run with no errors.

Hopefully this will work for you (see Comment 11).

Comment 15 Paul Webster 2015-07-09 13:06:29 UTC
I still receive my error using the new docker package.  AFAIK I have an up to date RHEL 6.6 image.  If there are any other packages whose version I can check, please let me know.

kernel-2.6.32-504.23.4.el6.x86_64
docker-io-1.6.2-3.el6.x86_64
iproute-2.6.32-33.el6_6.x86_64

Comment 16 manuel wolfshant 2015-07-09 13:33:39 UTC
(In reply to Paul Webster from comment #15)

> 
> kernel-2.6.32-504.23.4.el6.x86_64
> docker-io-1.6.2-3.el6.x86_64
> iproute-2.6.32-33.el6_6.x86_64

All those are the most current. No idea about docker though. Lokesh ?

Comment 17 Daniel Walsh 2015-07-15 21:22:41 UTC
I think this might be a problem with the rhel6 kernel not supporting something docker is trying to do.


Note You need to log in before you can comment on or make changes to this bug.