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
Running out of inodes on /run #22095
Comments
/run
Thanks for reporting! ping @crosbymichael @anusha-ragunathan any ideas on this one? |
Thank you very much for the detailed report! Cc @tonistiigi too. |
No problem, I notice that this is happening locally too on the same setup (ubuntu 14.04, same kernel, same docker version), those stdin and stdout files keep gathering with every exec done on a container. |
The three pipes for each exec for stdin, stdout and stderr are not deleted after each |
Ok, I will fix this. |
Escalating this issue to P0: we're going to move forward with a 1.11.1 patch release for this. |
Is this fixed in new release? |
@yeasy it's fixed in docker 1.11.1 |
@thaJeztah |
I've to reopen this issue, as when using 1.11.2. |
I'm experiencing the same issue. Here is a list of the top 10 largest directories in
Notice how there are node_modules folders listed. This alludes to a relationship of these files to volumes in my container. What is weird though is that I've configured docker to use a different mount point for images/containers that is attached to a separate volume from the root volume of the host machine, so why would these files be affecting the root volume? In my Running docker version 1.11.0 here, but since @yeasy points out that the issue still exists in 1.11.2 I didn't bother upgrading. |
@antoniomercado what distro and version are you on? Are you sure your |
ping @tonistiigi ^^ |
@thaJeztah I'm using Ubuntu 14.04 which doesn't use systemd by default. I think Ubuntu switched to systemd by default in version 16.04, so I don't think that's the issue. Plus I know its using the mount point by looking at the |
@antoniomercado Please upgrade to @antoniomercado The files in your log are new bind mounts from |
@tonistiigi I've discussed this internally with engineering at my organization and we are scheduled to upgrade our production servers to |
I'm having the same issue on CentOS 7.4, Docker version 17.05.0-ce, build 89658be:
|
@averri be aware that Docker 17.05 reached end-of-life in June of last year, and hasn't been maintained since then. |
Hi @thaJeztah, thanks for informing. The workaround here is to delete unused files in order to free the inodes. |
BUMP 😄 |
@rishiloyola are you still able to reproduce this on a current version of Docker? Docker 17.09 reached EOL in december 2017. If you're still able to reproduce, could you open a new issue instead? The original issue reported here was fixed in 2016. Since then, the entire runtime has been replaced, so although the problem may look similar, there's a high chance that the cause is different, so better to open an new issue instead. |
Now @thaJeztah is correct that nobody should be using docker 17 anymore, BUT for those that are, here's how I solved this... The issue is docker failed to cleanup files such as:
Create
Then add this cron job:
Once a day it'll go through and delete any old unused files. This was:
Do the right thing and update your docker version, but otherwise, enjoy at your own risk ;) |
After updating to docker 1.11 I seem to run out of inodes on /run.
Inspecting the
/run/docker/libcontainerd
dirs I see that my containers have the following numbers of of files:The container with the most files is one I use to 'exec' commands on for health checking within an overlay network.
Restarting the container resolves the issue
Listing the files within that culprit container's dir in
/var/run/docker/libcontainerd
I see piles ofI also updated kernel recently as well
Output of uname -a:
Trying to exec a command on a container:
Trying to run a container:
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Running on aws.
The text was updated successfully, but these errors were encountered: