Fix MAC address option typo in how-to documentation (#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.
This commit is contained in:
c
2026-01-01 17:50:19 -08:00
committed by GitHub
parent edadf155cd
commit 25ac79a0c4
+1 -1
View File
@@ -216,7 +216,7 @@ container run --network default,mac=02:42:ac:11:00:02 ubuntu:latest
To verify the MAC address is set correctly, run `ip addr show` inside the container:
```console
% container run --rm --mac-address 02:42:ac:11:00:02 ubuntu:latest ip addr show eth0
% container run --rm --network default,mac=02:42:ac:11:00:02 ubuntu:latest ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff
inet 192.168.64.2/24 brd 192.168.64.255 scope global eth0