-
Notifications
You must be signed in to change notification settings - Fork 86
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
Multiple run of docker run --rm
hangs in a host
#115
Comments
@dnephin could you please take a look? Might be cli related |
Might be related to moby/moby#32237 I'll see if I can reproduce the issue. |
Looks like that this works for yesterday release |
This seems related to moby/moby#34999 |
|
@kolyshkin
regarding 2. That works. |
Great, so to fix this we need moby/moby#34999 and moby/moby#34886. First one will fix the issue on older RHEL7 kernels, second one will eliminate the cause for those running RHEL7.4+ kernel. |
I believe I'm getting the same/similar issue on Ubuntu 16.04 (4.4.0-112-generic #135-Ubuntu SMP) using Docker version 17.12.0-ce, build c97c6d6. I'm using cron on the host to run multiple short lived containers in parallel with the
|
@mhingston This is a different issue, which we are also tracking.... I believe docker-archive/docker-ce#395 would fix it. Note it does not seem like an issue with 17.12 specifically, but likely more due to recent kernel changes that exposed a race condition in the runc codebase. |
Same issue |
Expected behaviour
When I run any of
docker run --rm image command
andcommand
exit, the container should be removed from the list ofdocker ps
docker run` process should also exit.Actual behaviour
This happens when you run multiple containers in parallel.
command
send output (and probably exit) butdocker run
process does not exit and container is in thedead
state. I have a computational heavy single-threaded process program that I want to run in parallel in multiple containers on a multicore host (64 cores).I have to use CentOS and Red Hat. I have found that version 17.03.2 or lower is working flawlessly but 17.06 and above have this issue. It is not working for Red Hat 7.4 with Docker EE nor for CentOS with Docker CE.
BTW I also do not have this issue on Ubuntu 16.04.
Steps to reproduce the behaviour
I have created script
test_parallel.sh
to test this behaviourExamples of NON-working combination:
CentOS Linux 7 with Docker 17.06.2-ce
Red Hat Enterprise Linux Server 7.4 with Docker 17.06.2-ee-3
Docker processes hang until dead containers are removed.
An example of working combination
CentOS Linux 7 with Docker 17.03.2-ce
The text was updated successfully, but these errors were encountered: