mirror of
https://github.com/apple/container.git
synced 2026-08-27 18:14:21 -05:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user