Created
December 13, 2025 14:21
-
-
Save orange723/4883f0e6e865b785ba44b5d223cbe6f4 to your computer and use it in GitHub Desktop.
cri-docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tee > cri-docker.socket < EOF | |
| [Unit] | |
| Description=CRI Docker Socket for the API | |
| PartOf=cri-docker.service | |
| [Socket] | |
| ListenStream=%t/cri-dockerd.sock | |
| SocketMode=0660 | |
| SocketUser=root | |
| SocketGroup=docker | |
| [Install] | |
| WantedBy=sockets.target | |
| EOF | |
| tee > cri-docker.service < EOF | |
| [Unit] | |
| Description=CRI Interface for Docker Application Container Engine | |
| Documentation=https://docs.mirantis.com | |
| After=network-online.target firewalld.service docker.service | |
| Wants=network-online.target | |
| Requires=cri-docker.socket | |
| [Service] | |
| Type=notify | |
| ExecStart=/usr/bin/cri-dockerd --container-runtime-endpoint fd:// | |
| ExecReload=/bin/kill -s HUP $MAINPID | |
| TimeoutSec=0 | |
| RestartSec=2 | |
| Restart=always | |
| # Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229. | |
| # Both the old, and new location are accepted by systemd 229 and up, so using the old location | |
| # to make them work for either version of systemd. | |
| StartLimitBurst=3 | |
| # Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230. | |
| # Both the old, and new name are accepted by systemd 230 and up, so using the old name to make | |
| # this option work for either version of systemd. | |
| StartLimitInterval=60s | |
| # Having non-zero Limit*s causes performance problems due to accounting overhead | |
| # in the kernel. We recommend using cgroups to do container-local accounting. | |
| LimitNOFILE=infinity | |
| LimitNPROC=infinity | |
| LimitCORE=infinity | |
| # Comment TasksMax if your systemd version does not support it. | |
| # Only systemd 226 and above support this option. | |
| TasksMax=infinity | |
| Delegate=yes | |
| KillMode=process | |
| [Install] | |
| WantedBy=multi-user.target | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment