实现
替换docker 镜像源
前提要求
- 安装 docker docker-compose 参考
创建一键更换docker国内源
vim /docker_daemon.sh
#!/bin/bash
# -*- coding: utf-8 -*-
# Author: make.han
# Email: CIASM@CIASM
# Date: 2024/06/07
# docker daemon.jsondaemon_json_file="/etc/docker/daemon.json"if [ -f "$daemon_json_file" ]; thenecho "docker daemon.json already exists. No action needed."elseecho "Creating docker daemon.json"
cat <<'EOF'>>/etc/docker/daemon.json{"registry-mirrors": ["https://registry.hub.docker.com","https://ccr.ccs.tencentyun.com",