docker

docker 配置

cat /etc/docker/daemon.json
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "ipv6":false,
  "insecure-registries":["172.105.104.177:1080"],
  "data-root":"/opt/docker",
}

# 重新加载某个服务的配置文件
sudo systemctl daemon-reload
# 重新启动 docker
sudo systemctl restart docker

手动加速

常规镜像代理
官方命令:docker pull stilleshan/frpc:latest
代理命令:docker pull dockerproxy.com/stilleshan/frpc:latest

根镜像代理
官方命令:docker pull nginx:latest
代理命令:docker pull dockerproxy.com/library/nginx:latest

GitHub Container Registry
常规镜像代理
官方命令:docker pull ghcr.io/username/image:tag
代理命令:docker pull ghcr.dockerproxy.com/username/image:tag

Google Container Registry
常规镜像代理
官方命令:docker pull gcr.io/username/image:tag
代理命令:docker pull gcr.dockerproxy.com/username/image:tag

Google Kubernetes
常规镜像代理
官方命令:docker pull k8s.gcr.io/username/image:tag
代理命令:docker pull k8s.dockerproxy.com/username/image:tag

根镜像代理
官方命令:docker pull k8s.gcr.io/coredns:1.6.5
代理命令:docker pull k8s.dockerproxy.com/coredns:1.6.5

Quay.io
常规镜像代理
官方命令:docker pull quay.io/username/image:tag
代理命令:docker pull quay.dockerproxy.com/username/image:tag

加速镜像

阿里云

https://ustc-edu-cn.mirror.aliyuncs.com

Azure 中国镜像

https://dockerhub.azk8s.cn

七牛

https://reg-mirror.qiniu.com

腾讯云

https://mirror.ccs.tencentyun.com

网易云

https://hub-mirror.c.163.com

dockerproxy https://dockerproxy.net

使用文档

https://dockerproxy.net/docs

docker pull stilleshan/frpc:latest

docker pull dockerproxy.net/stilleshan/frpc:latest

打包最小的 golang docker

https://zhuanlan.zhihu.com/p/535414655?utm_id=0

dive 镜像分析工具

https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_linux_amd64.tar.gz