mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-10 20:04:36 +00:00
Fix and update
This commit is contained in:
@@ -125,6 +125,8 @@ threshold: 3
|
||||
|
||||
### 生成 http 认证文件
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ mkdir auth
|
||||
|
||||
@@ -136,7 +138,9 @@ $ docker run --rm \
|
||||
|
||||
> 将上面的 `username` `password` 替换为你自己的用户名和密码。
|
||||
|
||||
### 编辑 `docker-compose.yml`
|
||||
### 编辑 Docker Compose 配置
|
||||
|
||||
编辑 `docker-compose.yml` 配置如下:
|
||||
|
||||
```yaml
|
||||
|
||||
@@ -154,7 +158,7 @@ volumes:
|
||||
registry-data:
|
||||
```
|
||||
|
||||
### 修改 hosts
|
||||
### 修改 Hosts 文件
|
||||
|
||||
编辑 `/etc/hosts`
|
||||
|
||||
@@ -164,6 +168,8 @@ volumes:
|
||||
|
||||
### 启动
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker compose up -d
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user