Skip to content

Commit

Permalink
docker: Increase ulimit to infinity (#1003)
Browse files Browse the repository at this point in the history
The current Colima VM (Ubuntu) is using the default value of 1024 file descriptors. This is insufficient for software such as Kafka that requires a high amount of open files, even in development environments.

https://docs.confluent.io/platform/current/kafka/deployment.html

Since the principal purpose of the Colima VM is just to run docker, this sets the value to infinity to limit to the OS limits.
  • Loading branch information
jramosf authored Apr 2, 2024
1 parent 75b104a commit bd99ce2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions environment/container/docker/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (d dockerRuntime) addHostGateway(conf map[string]any) error {
const systemdUnitFilename = "/etc/systemd/system/docker.service.d/docker.conf"
const systemdUnitFileContent string = `
[Service]
LimitNOFILE=infinity
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --host-gateway-ip=%s
`

0 comments on commit bd99ce2

Please sign in to comment.