-
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
Removing docker container causing lock up #3610
Comments
@graemej and I just had a similar issue. We were working on a new Dockerfile:
This was immediately after restarting |
... it seems something spreading may facets: https://github.com/search?q=%22remove+containers%22+docker&type=Issues&ref=searchresults |
This may be the same underlying issue as the problem @poe and I reported in #3744 . The signature of that issue is that we see It would be useful to know if others experiencing host crashes are also seeing the "soft lockup" message and what kernel version and hardware it is occurring on. |
Could you all post your kernel version, os, docker info, docker version... |
The environment that @burke and I are using is: uname -a
cat /etc/issue
docker info
docker version
|
I have a docker container that cannot be removed:
When I try, this happens in messages:
And then the machine totally, irrevcably, hangs. Completely, no response of any kind. ssh sessions won't even disconnect. Note that the machine running docker is an EC2 VM. It may come back later, but I've waited more than an hour.
|
So, uhh, now that I've given my report, how do I get around this? I literally can't remove this container and I very much want to; is there way for me to manually remove it? |
I fixed it like so, just in case it helps anybody else:
(that first line is only relevant if you're using packer, and probably isn't |
So it just happened again. Here's output from my packer/docker run:
I have no idea what it's talking about ; /dev/stdout isn't a thing that can be And now trying to rm that container is hanging the entire VM again. |
This has happened several more times. -_- |
Additional information: I think, but am not sure, that this started happening after I moved /var/lib/docker to being NFS-based. So if docker relies on NFS operations, that may be relevant. My basic process here is to create my "base" image, and then use the base image to make my "tomcat" and "mysql" images. Then I run a mysql and a tomcat, then I shut them all down, then I rm everything. The VM that hangs the kernel seems to normally be the base image that was used to make the tomcat image. Dunno if that matters, but thought I'd mention. |
@rlpowell I don't think we support the docker root on NFS. Aufs and other CoW filesystems do not play well on NFS. |
This issue has been opened a very long time ago and many Docker versions have been released since. If you happen to run into this issue with a supported setup and an up to date version of Docker, please comment and the issue will be opened again. |
@unclejack I'm getting this on CentOS 7 over at DigitalOcean (This does not happen locally on my Ubuntu 14 machine running
After this the box crashes and I have to restart it. This is running These are the logs from the container on reboot:
|
I got the same issue but it seems to have something to do with the way the storage is being handled automatically on RHEL boxes: If you don't have enough LVM or unpartitioned space, docker-storage-setup (which seems to run automatically if /var/lib/docker does not exist) will create some weird setup (I'm guessing some files in /var/lib/docker that get mounted as loop devices and stuck into the device mapper, or something like this). Once I added a secondary disk to the VM, added |
@FlorinAsavoaie Hmm, that's very interesting. I'll be interested to say what some of the Docker team says. This is a pretty big issue for me in a cloud environment where I'm spinning systems up and down. I don't really want to have to add disks to the system. |
You don't have to add disks, just make sure you have enough space in the LVM Volume Groups so that Docker can use its default and production ready storage setup for RHEL, which is thin allocated LVM. |
The default device mapper configuration uses loopback devices, and is not intended for production usage. We recently added more documentation about picking and setting up storage drivers, see: http://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers/ and this page describes device mapper; http://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/ |
Note: This has only occurred once but I thought I'd report it in case others experience the same issue.
I tried to run
docker kill
against a container and it wouldn't stop so I trieddocker stop
but that didn't work either. Finally, I tried runningdocker rm
which reported that it couldn't remove a running container and then soon after it caused the whole SSH session to freeze. At that point the box was inaccessible via any new SSH connections.Here's a log from the box:
https://gist.github.com/snormore/20c261a4166d8049e238
And the docker version and info:
/cc: @snormore
The text was updated successfully, but these errors were encountered: