github.com/containerd/containerd@v22.0.0-20200918172823-438c87b8e050+incompatible/containerd.service (about)

     1  # Copyright The containerd Authors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  [Unit]
    16  Description=containerd container runtime
    17  Documentation=https://containerd.io
    18  After=network.target local-fs.target
    19  
    20  [Service]
    21  ExecStartPre=-/sbin/modprobe overlay
    22  ExecStart=/usr/local/bin/containerd
    23  
    24  Type=notify
    25  Delegate=yes
    26  KillMode=process
    27  Restart=always
    28  RestartSec=5
    29  # Having non-zero Limit*s causes performance problems due to accounting overhead
    30  # in the kernel. We recommend using cgroups to do container-local accounting.
    31  LimitNPROC=infinity
    32  LimitCORE=infinity
    33  LimitNOFILE=infinity
    34  # Comment TasksMax if your systemd version does not supports it.
    35  # Only systemd 226 and above support this version.
    36  TasksMax=infinity
    37  OOMScoreAdjust=-999
    38  
    39  [Install]
    40  WantedBy=multi-user.target