From 21c743d0228124b22dfe283015bd41c5f51c9d8d Mon Sep 17 00:00:00 2001 From: taoky Date: Sun, 7 Jul 2024 19:35:56 +0800 Subject: [PATCH] dockerhub: Fix command and YAML config example --- docs/dockerhub.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/docs/dockerhub.md b/docs/dockerhub.md index 9d71b9f0..31ffc58b 100644 --- a/docs/dockerhub.md +++ b/docs/dockerhub.md @@ -105,9 +105,10 @@ Registry Mirrors: 由于镜像站目前暂不为校外提供容器镜像缓存服务,如果需要自行搭建本地镜像缓存,可以参考以下的方式: -Redis 容器: +创建 Docker network 与 Redis 容器: ```shell +docker network create docker-registry docker rm -f redis docker run \ --name=redis \ @@ -159,19 +160,19 @@ http: notifications: endpoints: - name: local-5003 - url: http://localhost:5003/callback - headers: - Authorization: [Bearer ] - timeout: 1s - threshold: 10 - backoff: 1s - disabled: true + url: http://localhost:5003/callback + headers: + Authorization: [Bearer ] + timeout: 1s + threshold: 10 + backoff: 1s + disabled: true - name: local-8083 - url: http://localhost:8083/callback - timeout: 1s - threshold: 10 - backoff: 1s - disabled: true + url: http://localhost:8083/callback + timeout: 1s + threshold: 10 + backoff: 1s + disabled: true health: storagedriver: enabled: true