You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TaskConfig: Add option for file_limit to set RLIMIT_NOFILE
Depending on the workload, the default resource limit (ulimit) for the
max number of file descriptors per process may need to be raised, such
as for database servers. Add a `file_limit` option to the task config
which will allow the limit to be set per task.
Signed-off-by: Ryan Sundberg <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,7 @@ To interact with `images` and `containers` directly, you can use [`nerdctl`](htt
112
112
|**privileged**| bool | no | Run container in privileged mode. Your container will have all linux capabilities when running in privileged mode. |
113
113
|**pids_limit**| int64 | no | An integer value that specifies the pid limit for the container. Defaults to unlimited. |
114
114
|**pid_mode**| string | no |`host` or not set (default). Set to `host` to share the PID namespace with the host. |
115
+
|**file_limit**| int64 | no | An integer value that specifies the file descriptor ulimit for the container. Defaults to 1024 by containerd. |
115
116
|**hostname**| string | no | The hostname to assign to the container. When launching more than one of a task (using `count`) with this option set, every container the task starts will have the same hostname. |
116
117
|**host_dns**| bool | no | Default (`true`). By default, a container launched using `containerd-driver` will use host `/etc/resolv.conf`. This is similar to [`docker behavior`](https://docs.docker.com/config/containers/container-networking/#dns-services). However, if you don't want to use host DNS, you can turn off this flag by setting `host_dns=false`. |
117
118
|**seccomp**| bool | no | Enable default seccomp profile. List of [`allowed syscalls`](https://github.com/containerd/containerd/blob/master/contrib/seccomp/seccomp_default.go#L51-L395). |
0 commit comments