mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
Disk location
This commit is contained in:
parent
bead87ae4b
commit
e250830592
@ -71,13 +71,15 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
|
|||||||
|
|
||||||
* ### How do I change the location of the virtual disk?
|
* ### How do I change the location of the virtual disk?
|
||||||
|
|
||||||
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:
|
To change the virtual disk's location from the default docker volume, include the following bind mount in your compose file:
|
||||||
|
|
||||||
```
|
```
|
||||||
volumes:
|
volumes:
|
||||||
- /home/user/data:/storage
|
- /home/user/data:/storage
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Replace the example path `/home/user/data` with the desired storage folder.
|
||||||
|
|
||||||
* ### How do I change the space reserved by the virtual disk?
|
* ### How do I change the space reserved by the virtual disk?
|
||||||
|
|
||||||
By default, the entire disk space is reserved in advance. To create a growable disk, that only reserves the space that is actually used, add the following environment variable:
|
By default, the entire disk space is reserved in advance. To create a growable disk, that only reserves the space that is actually used, add the following environment variable:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user