Skip to content

Commit

Permalink
doc: update docs/docker-compose.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 12, 2024
1 parent 167fef3 commit a10d0f8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,3 +622,35 @@ devices:
```

以 `HOST_PATH:CONTAINER_PATH[:CGROUP_PERMISSIONS]` 的形式定义已创建容器的设备映射列表。

### dns

```yml
dns: 8.8.8.8
dns:
- 8.8.8.8
- 9.9.9.9
```

定义在容器网络接口配置上设置的自定义 DNS 服务器。它可以是单个值或列表。

### dns_opt

```yml
dns_opt:
- use-vc
- no-tld-query
```

列出要传递给容器的 DNS 解析器(Linux 上的 /etc/resolv.conf 文件)的自定义 DNS 选项。

### dns_search

```yml
dns_search: example.com
dns_search:
- dc1.example.com
- dc2.example.com
```

定义在容器网络接口配置上设置的自定义 DNS 搜索域。它可以是单个值或列表。

0 comments on commit a10d0f8

Please sign in to comment.