-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
docker can't start container #9134
Comments
I get it‘s answer。https://github.com/docker/libcontainer/blob/master/netlink/netlink_linux.go#L1203 |
Thanks for the report. I'll look into this. ping @phemmer did you have any idea why this would be readonly on some systems? |
The message I checked on one of my RHEL 6.5 system and the file is read-write as expected. If I recall correctly, there was a bug in an older version of docker that would cause |
It looks like the bug with |
@phemmer , you mean if I had used the docker 1.1.0 to start the docker container. the /sys would be read-only. and if I upgrade my doceker to 1.2.0 or higher, the /sys would still be read-only. is that right? if I reboot or remount it, it will be fix it? |
@cc272309126 what docker version are you using? |
@cc272309126 Yes. If you were previously running a version older than 1.2.0, your |
@crosbymichael I use the 1.3.1-dev. |
Ok thanks. @phemmer it is related to the code changes and not anything with a past version. We do not fully mount /sys as readonly and at the time that we setup the network interfaces /sys is not RO at all |
@crosbymichael I don't follow. |
@phemmer if I want to upgrade the docker from 1.2.0 to 1.3.0, how can I avoid this issue without reboot? I found that remount just work for start one container, if I start another container it will ask me remount again. |
You're saying that with >= 1.3.0 it's remounting Maybe that's what @crosbymichael was talking about in his last comment, some unrelated code in 1.3.0 which is remounting |
No, we do not mount |
@phemmer @crosbymichael, I have used --net=host with docker which version is under 1.2.0. and now I upgrade the docker to 1.3.1-dev.and this happend. and if I just upgrade to 1.3.0, this issue will not happend. I am sorry about that I don't describe it clearly. |
I found that on the docker 1.3.0, the code doesn't implemente the function func SetHairpinMode(iface *net.Interface, enabled bool), but on the master it add the function. |
Humm, maybe it has to do with your 2.6 kernel. I guess you are running RHEL or centos ? I'll try to reproduce on that system. |
yes, I run on rhel 6.5. the kernel is 2.6.32-431. |
i am having the same issue CentOS 6.5 Kernel 2.6.32-504.1.3.el6.x86_64 |
ok |
I'll work on a fix for this today |
I'm still having issues with this. I have a software that need access to the network devices for network monitoring purposes. With With
Don't ask my why but the application tries to run chown:chown on that folder I followed the symlink in my host but I can't start docker with
Sorry for reviving this, but google isn't helping much 😕 |
Hi,
I have found that docker start a container will appear "Cannot start container 4a95e162ebab: open /sys/class/net/veth1afc6a6/brport/hairpin_mode: read-only file system" and I test with the master branch, I think it may related to libcontainer.
docker info
Containers: 116
Images: 436
Storage Driver: devicemapper
Pool Name: docker-253:0-2229360-pool
Pool Blocksize: 65.54 kB
Data file: /var/lib/docker/devicemapper/devicemapper/data
Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata
Data Space Used: 28.61 GB
Data Space Total: 107.4 GB
Metadata Space Used: 39.26 MB
Metadata Space Total: 2.147 GB
Library Version: 1.02.82-git (2013-10-04)
Execution Driver: native-0.2
Kernel Version: 2.6.32-431.el6.x86_64
Operating System:
CPUs: 16
Total Memory: 31.34 GiB
Debug mode (server): true
Debug mode (client): false
Fds: 15
Goroutines: 14
EventsListeners: 0
Init Path: /usr/bin/docker
The text was updated successfully, but these errors were encountered: