docker加速笔记

发布于 2022-03-19  100 次阅读


docker安装

  1. yum install -y yum-utils device-mapper-persistent-data lvm2
    yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    yum install docker-ce docker-ce-cli containerd.io -y
    systemctl start docker && systemctl enable docker

docker加速配置

  1. https://cr.console.aliyun.com支付宝登录
  2. sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.conf <<-'EOF'
    {
    "registry-mirrors": ["自己的","https://dockerhub.azk8s.cn","http://hub-mirror.c.163.com"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker
  3. uname -srm   内核版本cat /etc/redhat-release系统版本
  4. 摘自
子夜不哭
最后更新于 2022-03-19