Skip to content

Commit

Permalink
docs: remove confusing curly braces, ref dnomd343#11
Browse files Browse the repository at this point in the history
  • Loading branch information
dnomd343 committed Sep 1, 2023
1 parent 7894eb5 commit 63208d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ $ ip link set eth0 promisc on
# 创建macvlan网络,按实际情况指定网络信息
$ docker network create -d macvlan \
--subnet={IPv4网段} --gateway={IPv4网关} \
--subnet={IPv6网段} --gateway={IPv6网关} \ # IPv6可选
--subnet=IPv4网段 --gateway=IPv4网关 \
--subnet=IPv6网段 --gateway=IPv6网关 \ # IPv6可选
--ipv6 -o parent=eth0 macvlan # 在eth0网卡上运行
```

Expand All @@ -514,7 +514,7 @@ docker run -dt --network macvlan \
--volume /etc/cleardns/:/cleardns/ \
--volume /etc/timezone:/etc/timezone:ro \
--volume /etc/localtime:/etc/localtime:ro \
--ip {IPv4地址} --ip6 {IPv6地址} \
--ip IPv4地址 --ip6 IPv6地址 \
dnomd343/cleardns
```

Expand All @@ -536,8 +536,8 @@ services:
- /etc/localtime:/etc/localtime:ro
networks:
macvlan:
ipv4_address: {IPv4地址}
ipv6_address: {IPv6地址}
ipv4_address: IPv4地址
ipv6_address: IPv6地址
networks:
macvlan:
Expand Down

0 comments on commit 63208d9

Please sign in to comment.