It will be downloaded only once, during the first run of the container.
* ### How do I change the size of the data disk? ###
* ### How do I change the size of the data disk?
By default it is 16GB, but to increase it you can modify the `DISK_SIZE` setting in your compose file:
To expand the default size of 16GB, locate the `DISK_SIZE` setting in your compose file and modify it to your preferred capacity:
```
environment:
DISK_SIZE: "16G"
```
To resize the disk to a capacity of 8 terabyte you would use a value of `"8T"` for example.
* ### How do I change the location of the data disk?
* ### How do I change the location of the data disk? ###
By default it resides inside a docker volume, but to store it somewhere else you can add these lines to your compose file:
To change the virtual disk's location from the default docker volume, include the following bind mount in your compose file and replace the path `/home/user/data` with the desired storage folder:
```
volumes:
- /home/user/data:/storage
```
Just replace `/home/user/data` with the path to the folder you want to use for storage.
* ### How do I change the space reserved by the data disk? ###
By default the total space for the disk is reserved in advance. If you want to only reserve the space that is actually used by the disk, add these lines:
```
environment:
ALLOCATE: "N"
```
This might lower performance a bit, since the image file will need to grow every time new data is added to it.
* ### How do I change the amount of CPU/RAM? ###
* ### How can I increase the allocated amount of CPU/RAM?
By default a single core and 512MB of RAM is allocated to the container.
To increase this you can add the following environment variabeles:
By default, a single core and 512MB of RAM is allocated to the container. To increase this, add the following environment variables:
This also has the advantage that you don't need to do any portmapping anymore, because all ports will be fully exposed this way.
An added benefit of this approach is that you won't have to perform any portmapping anymore, since all ports will be exposed by default.
NOTE: You will not be able to reach this IP from the Docker host, as macvlan does not allow communication between those two. There are some ways to fix that if necessary, 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 solutions available, but they go beyond the scope of this FAQ.
* ### How can the container get an IP address via DHCP? ###
* ### How can the container acquire an IP address via DHCP?
First follow the steps to configure the container for macvlan (see above), and then add the following lines to your compose file:
After configuring the container for macvlan (see above), add the following lines to your compose file to enable DHCP:
NOTE: The exact cgroup rule may be different than `510` depending on your system, but the correct rule number will be printed to the log output in case of error.
Please note that the exact `cgroup` rule number may vary depending on your system, but the log output will indicate the correct number in case of an error.