Skip to content

Commit a10d0f8

Browse files
committed
doc: update docs/docker-compose.md
1 parent 167fef3 commit a10d0f8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/docker-compose.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,3 +622,35 @@ devices:
622622
```
623623

624624
以 `HOST_PATH:CONTAINER_PATH[:CGROUP_PERMISSIONS]` 的形式定义已创建容器的设备映射列表。
625+
626+
### dns
627+
628+
```yml
629+
dns: 8.8.8.8
630+
dns:
631+
- 8.8.8.8
632+
- 9.9.9.9
633+
```
634+
635+
定义在容器网络接口配置上设置的自定义 DNS 服务器。它可以是单个值或列表。
636+
637+
### dns_opt
638+
639+
```yml
640+
dns_opt:
641+
- use-vc
642+
- no-tld-query
643+
```
644+
645+
列出要传递给容器的 DNS 解析器(Linux 上的 /etc/resolv.conf 文件)的自定义 DNS 选项。
646+
647+
### dns_search
648+
649+
```yml
650+
dns_search: example.com
651+
dns_search:
652+
- dc1.example.com
653+
- dc2.example.com
654+
```
655+
656+
定义在容器网络接口配置上设置的自定义 DNS 搜索域。它可以是单个值或列表。

0 commit comments

Comments
 (0)