Skip to content

Commit

Permalink
Merge pull request #760 from jbarrick-mesosphere/master
Browse files Browse the repository at this point in the history
Set LimitNOFILE=1048576 in containerd unit file to match upstream containerd.
  • Loading branch information
k8s-ci-robot authored Aug 8, 2019
2 parents 991e45e + 86156b3 commit 5315b86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions images/base/10-limits.conf
Original file line number Diff line number Diff line change
@@ -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.
[Service]
LimitNOFILE=1048576
4 changes: 2 additions & 2 deletions images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5315b86

Please sign in to comment.