This commit is contained in:
Kroese 2023-05-06 21:02:50 +02:00 committed by GitHub
parent ad1ab7bd94
commit 8ef45509b6

View File

@ -148,7 +148,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
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), 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: