type
status
date
slug
summary
tags
category
icon
安装 Docker
参考官方文档安装: https://docs.docker.com/engine/install/

设置镜像源
Docker 安装以后默认没有 daemon.json 这个文件,所以我们需要先手动创建一个
在 daemon.json 中写入以下内容,其中的镜像地址可以替换为别的任何一个可用地址,演示中使用的是我自用的(不保证长期稳定可用)
国内可用的 Docker 镜像源可以在 https://github.com/dongyubin/DockerHub?tab=readme-ov-file 这里找一找
重启 Docker
执行以下两条命令(执行顺序无所谓)
测试拉取镜像
按照教程,拉取一个 hello world 镜像验证
结果
