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 Daemon gets stuck when containerd fails to create a container #33828
Comments
Similar to #32995 |
Looks like #22226, which lead to the timeout being bumped to 2 minutes in #23176 2 minutes is awfully long though (containers should normally start in milliseconds or seconds in extreme cases). A big change was made in docker 17.07 and up to prevent some occurrences of ping @mlaventure anything that can be done here? |
I have the same with Version: 17.09.0-ce |
Solved by encreasing memory and rebooting. |
@l1va did you increase memory allocation to container or machine itself? |
@thaJeztah We have an image with a data preloaded with a lot of data, which copies the data into a docker volume. When the volume is first created, dozens of GB is copied to the volume. This will take minutes. Once the volume is initialized, the container does start quickly. |
@udalrich it may be difficult to take that use-case into account; raising the limit too far could mean that containers with an actual problem would never be marked as "faulty". Wondering if an entrypoint script that copies the data to the volume location would help in your case. |
So something like
|
Yes, that's what I was thinking (a bit similar to the approach taken by the official WordPress image). Let me know if that works 👍 |
Description
When containerd fails to create a container within 2 minutes, Docker stops responding to
docker ps
and other commands.Steps to reproduce the issue:
container did not start before the specified timeout
errors:docker run --name writer myimage
docker run --name test hello-world
. (gets stuck)docker ps
(also gets stuck)docker ps
again (still stuck)Describe the results you received:
docker ps
is stuckDescribe the results you expected:
docker ps
shows single container namedwriter
Additional information you deem important (e.g. issue happens only occasionally):
We had a few containers with heavily writing to container storage. The issue did not occur after the containers were stopped.
I cannot attach all the logs here as they contain confidential stuff (I'll attach it to the Commercial Support ticket). Here's syslog parts related to a "hello-world" container causing docker to hang:
Gorotines dump goroutine-stacks-2017-06-23T162427Z.txt
Output of
docker version
:Docker was upgraded to 17.03.2-ee-4 on this exact host, so I've copied version/info from another one with the same configuration.
Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
AWS x1.16xlarge instance
The text was updated successfully, but these errors were encountered: