DHCP
This commit is contained in:
parent
beea3de88d
commit
bb40635b2f
1 changed files with 2 additions and 2 deletions
|
@ -154,9 +154,9 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm
|
||||||
|
|
||||||
Please note that this IP address won't be accessible from the Docker host due to the design of macvlan, which doesn't permit communication between the two. If this is a concern, there are some workarounds available, but they go beyond the scope of this FAQ.
|
Please note that this IP address won't be accessible from the Docker host due to the design of macvlan, which doesn't permit communication between the two. If this is a concern, there are some workarounds available, but they go beyond the scope of this FAQ.
|
||||||
|
|
||||||
* ### How can the container acquire an IP address via DHCP?
|
* ### How can the container acquire an IP address from my router?
|
||||||
|
|
||||||
After configuring the container for macvlan (see above), add the following lines to your compose file:
|
After configuring the container for macvlan (see above), it will now be able to join your home network by requesting an IP from your router, just like your other devices. To enable this, add the following lines to your compose file:
|
||||||
|
|
||||||
```
|
```
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue