diff --git a/contrib/init/systemd/docker.service b/contrib/init/systemd/docker.service index 387be2eb1c..1bc4d1f569 100644 --- a/contrib/init/systemd/docker.service +++ b/contrib/init/systemd/docker.service @@ -6,6 +6,8 @@ After=network.target [Service] ExecStart=/usr/bin/docker -d Restart=on-failure +LimitNOFILE=1048576 +LimitNPROC=1048576 [Install] WantedBy=multi-user.target diff --git a/contrib/init/systemd/socket-activation/docker.service b/contrib/init/systemd/socket-activation/docker.service index c795f9c3b4..a3382ab414 100644 --- a/contrib/init/systemd/socket-activation/docker.service +++ b/contrib/init/systemd/socket-activation/docker.service @@ -6,6 +6,8 @@ After=network.target [Service] ExecStart=/usr/bin/docker -d -H fd:// Restart=on-failure +LimitNOFILE=1048576 +LimitNPROC=1048576 [Install] WantedBy=multi-user.target