Skip to content

Commit 25ac79a

Browse files
authored
Fix MAC address option typo in how-to documentation (apple#980)
- Corrects the MAC address example command in the how-to guide to use the correct `--network` flag syntax instead of the incorrect `--mac-address` flag.
1 parent edadf15 commit 25ac79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/how-to.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ container run --network default,mac=02:42:ac:11:00:02 ubuntu:latest
216216
To verify the MAC address is set correctly, run `ip addr show` inside the container:
217217

218218
```console
219-
% container run --rm --mac-address 02:42:ac:11:00:02 ubuntu:latest ip addr show eth0
219+
% container run --rm --network default,mac=02:42:ac:11:00:02 ubuntu:latest ip addr show eth0
220220
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
221221
link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff
222222
inet 192.168.64.2/24 brd 192.168.64.255 scope global eth0

0 commit comments

Comments
 (0)