github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/contrib/init/systemd/docker.service (about)

     1  [Unit]
     2  Description=Docker Application Container Engine
     3  Documentation=https://docs.docker.com
     4  After=network.target docker.socket
     5  Requires=docker.socket
     6  
     7  [Service]
     8  Type=notify
     9  # the default is not to use systemd for cgroups because the delegate issues still
    10  # exists and systemd currently does not support the cgroup feature set required
    11  # for containers run by docker
    12  ExecStart=/usr/bin/docker daemon -H fd://
    13  MountFlags=slave
    14  LimitNOFILE=1048576
    15  LimitNPROC=1048576
    16  LimitCORE=infinity
    17  # Uncomment TasksMax if your systemd version supports it.
    18  # Only systemd 226 and above support this version.
    19  #TasksMax=infinity
    20  TimeoutStartSec=0
    21  # set delegate yes so that systemd does not reset the cgroups of docker containers
    22  Delegate=yes
    23  
    24  [Install]
    25  WantedBy=multi-user.target