[+] 添加 registry
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 11s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 11s
This commit is contained in:
parent
a811e88428
commit
b7706986de
@ -48,6 +48,12 @@ sed -i "s|sandbox = 'registry.k8s.io|sandbox = 'docker.martin98.com/k8s|g" /etc/
|
|||||||
sed -ri '0,/(config_path).*/s@(config_path).*@\1 = "/etc/containerd/certs.d"@' /etc/containerd/config.toml
|
sed -ri '0,/(config_path).*/s@(config_path).*@\1 = "/etc/containerd/certs.d"@' /etc/containerd/config.toml
|
||||||
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml
|
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml
|
||||||
|
|
||||||
|
cat <<EOF >> /etc/containerd/config.toml
|
||||||
|
|
||||||
|
[plugins."io.containerd.grpc.v1.cri".registry]
|
||||||
|
config_path = "/etc/containerd/certs.d"
|
||||||
|
EOF
|
||||||
|
|
||||||
# 定义配置目录
|
# 定义配置目录
|
||||||
CONFIG_DIR="/etc/containerd/certs.d"
|
CONFIG_DIR="/etc/containerd/certs.d"
|
||||||
mkdir -pv "$CONFIG_DIR/docker.io"
|
mkdir -pv "$CONFIG_DIR/docker.io"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user