Update readme.md

pull/3/head
starry 2024-06-12 23:02:58 +08:00 committed by GitHub
parent 78c7fd2fc4
commit 350052136c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -18,7 +18,15 @@
每一个镜像仓库对外的端口都是不一样的当然你也可以使用nginx统一反向代理一下 每一个镜像仓库对外的端口都是不一样的当然你也可以使用nginx统一反向代理一下
#### 配置教程 #### 当你反代并开启HTTPS后不用设置环境也可以直接使用用法示例
```
docker pull example.com/library/mysql:5.7
```
说明:`library`是一个特殊的命名空间,它代表的是官方镜像。如果是某个用户的镜像就把`library`替换为镜像的用户名。
#### 环境配置教程
此方法会重启Docker服务当您有容器正在运行时建议使用上面的方法
``` ```
sudo vim /etc/docker/daemon.json sudo vim /etc/docker/daemon.json
``` ```