Skip to content
Browse files

Set LimitNOFILE=1048576 in containerd unit file to match upstream con…


The Ubuntu containerd package sets LimitNOFILE=infinity, but this causes issues with various applications: NFS and mysql are unable to run in kind on some systems.

This fixes the containerd limit to match upstream containerd and resolves issues with NFS and mysql.
  • Loading branch information...
jbarrick-mesosphere committed Aug 7, 2019
1 parent 991e45e commit 86156b3ecb30d641cfd656505c8d3be4a845e0a3
Showing with 7 additions and 2 deletions.
  1. +5 −0 images/base/10-limits.conf
  2. +2 −2 images/base/Dockerfile
@@ -0,0 +1,5 @@
# The Ubuntu upstream containerd.service specifies Limit NOFILE=infinity, but this causes problems with certain applications (e.g.,
# NFS and MySQL).
# This brings the unit file in line with upstream containerd's configuration.
@@ -76,8 +76,8 @@ RUN clean-install \
&& chmod +x /usr/local/bin/ctr \
&& echo "done installing packages"

# add restart override to containerd
COPY 10-restart.conf /etc/systemd/system/containerd.service.d/
# add overrides to containerd
COPY 10-limits.conf 10-restart.conf /etc/systemd/system/containerd.service.d/

# debug containerd version and create default config
# additionally, disable some plugins we don't use / support

0 comments on commit 86156b3

Please sign in to comment.
You can’t perform that action at this time.