mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
/etc/network/interfaces change is not correct (#5394)
Spend "a few hours" on MACVLAN set up to get host machine access containers and finally found out that the setting on /etc/network/interface is not correct in this doc. After adding dash to "pre-up" and "pre-down" and restarting the interface (sudo ifdown mac0 && sudo ifup mac0) everything started working like a charm.
This commit is contained in:
committed by
Jim Galasyn
parent
3ca13855ad
commit
0955c88c3c
@@ -146,8 +146,8 @@ iface eno1 inet manual
|
||||
|
||||
auto mac0
|
||||
iface mac0 inet dhcp
|
||||
preup ip link add mac0 link eno1 type macvlan mode bridge
|
||||
postdown ip link del mac0 link eno1 type macvlan mode bridge
|
||||
pre-up ip link add mac0 link eno1 type macvlan mode bridge
|
||||
post-down ip link del mac0 link eno1 type macvlan mode bridge
|
||||
```
|
||||
|
||||
For more on Docker networking commands, see
|
||||
|
||||
Reference in New Issue
Block a user