跳过正文
  1. Kubernetes/

docker及containerd镜像代理配置

·124 字·1 分钟·
Kubernetes Docker Containerd Proxy
古德
作者
古德
目录

实现docker及containerd镜像代理配置。

1. docker配置代理
#

  • 修改docker配置: /etc/docker/daemon.json
"registry-mirrors": [
        "https://xxx.xxx.xxx"
    ],
  • 重启服务
systemctl daemon-reload
systemctl restart docker

拉取镜像测试

docker pull nginx

2. containerd配置代理
#

  • 修改docker配置: /etc/containerd/config.toml
    [plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://xxx.xxx.xxx"]
  • 重启服务
systemctl daemon-reload
systemctl restart containerd

拉取镜像测试

crictl pull nginx

相关文章

docker开放远程操作api(2375)
·195 字·1 分钟
Kubernetes Docker Api
PVC误删除后恢复操作
·275 字·1 分钟
Kubernetes Pvc Volume
k8s网络问题解决记录
·766 字·2 分钟
Kubernetes Service Net
Kubernetes命令集合
·53 字·1 分钟
Kubernetes Shell Command Sh
k8s容器间免密访问方案
·1020 字·3 分钟
Kubernetes Ssh Nossh
k8s端口号定义及分配
·337 字·1 分钟
Kubernetes Service Port