mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-27 20:25:48 +00:00
Add blank lines before headers
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
参考[安装 Docker](../03_install/README.md) 一节添加 apt/yum 源,之后执行如下命令。
|
||||
|
||||
```bash
|
||||
|
||||
## debian 系
|
||||
|
||||
$ sudo apt install containerd.io
|
||||
@@ -37,6 +38,7 @@ Delegate=yes
|
||||
KillMode=process
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
## Having non-zero Limit*s causes performance problems due to accounting overhead
|
||||
|
||||
## in the kernel. We recommend using cgroups to do container-local accounting.
|
||||
@@ -44,6 +46,7 @@ RestartSec=5
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
LimitNOFILE=infinity
|
||||
|
||||
## Comment TasksMax if your systemd version does not supports it.
|
||||
|
||||
## Only systemd 226 and above support this version.
|
||||
@@ -59,15 +62,18 @@ WantedBy=multi-user.target
|
||||
|
||||
```toml
|
||||
version = 2
|
||||
|
||||
## persistent data location
|
||||
|
||||
root = "/var/lib/cri-containerd"
|
||||
|
||||
## runtime state information
|
||||
|
||||
state = "/run/cri-containerd"
|
||||
plugin_dir = ""
|
||||
disabled_plugins = []
|
||||
required_plugins = []
|
||||
|
||||
## set containerd's OOM score
|
||||
|
||||
oom_score = 0
|
||||
@@ -315,6 +321,7 @@ $ sysctl --system
|
||||
`/etc/systemd/system/kubelet.service.d/10-proxy-ipvs.conf` 写入以下内容
|
||||
|
||||
```bash
|
||||
|
||||
## 启用 ipvs 相关内核模块
|
||||
|
||||
[Service]
|
||||
|
||||
Reference in New Issue
Block a user