Skip to content
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

Set LimitNOFILE=1048576 in containerd unit file to match upstream containerd. #760

Merged
merged 1 commit into from
Aug 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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