Commit bb40635b authored by Kroese's avatar Kroese Committed by GitHub
Browse files

DHCP

parent beea3de8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.

  * ### 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: