* ### How do I change the space reserved by the virtual disk?
By default, the entire disk space is reserved in advance. To reserve only the space actually used by the disk, add the following environment variable to your compose file:
By default, the entire disk space is reserved in advance. To reserve only the space actually used by the disk, add the following environment variable:
An added benefit of this approach is that you won't have to perform any port mapping anymore, since all ports will be exposed by default.
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 solutions 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?
After configuring the container for macvlan (see above), add the following lines to your compose file to enable DHCP:
After configuring the container for macvlan (see above), add the following lines to your compose file: