ubuntuの場合
conf=/etc/systemd/system/containerd.service.d/http-proxy.conf
[ -d "${conf%/*}" ] || sudo mkdir "${conf%/*}"
sudo tee "$conf" <<"..."
[Service]
Environment="HTTP_PROXY=${HTTP_PROXY:-}"
Environment="HTTPS_PROXY=${HTTPS_PROXY:-}"
Environment="NO_PROXY=${NO_PROXY:-localhost},${LOCAL_NETWORK}"
EOF
...
sudo systemctl daemon-reload
sudo systemctl restart containerd
[ERROR ImagePull]: failed to pull image registry.k8s.io/pause:3.9: output: E0301 12:53:05.384864 5278 remote_image.go:171] "PullImage from image service
failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect:
no such file or directory\"" image="registry.k8s.io/pause:3.9"
time="2023-03-01T12:53:05+09:00" level=fatal msg="pulling image: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial
unix /var/run/containerd/containerd.sock: connect: no such file or directory\""
error: exit status 1 |