mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
docs: Default folder
This commit is contained in:
parent
932c23afba
commit
150c450bf6
@ -39,7 +39,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/dsm:/storage
|
- /var/dsm:/storage
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
stop_grace_period: 2m
|
stop_grace_period: 2m
|
||||||
```
|
```
|
||||||
@ -65,14 +65,14 @@ 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:
|
To change the location of the virtual disk, include the following bind mount in your compose file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
volumes:
|
volumes:
|
||||||
- /home/user/data:/storage
|
- /var/dsm:/storage
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace the example path `/home/user/data` with the desired storage folder.
|
Replace the example path `/var/dsm` with the desired storage folder.
|
||||||
|
|
||||||
* ### How do I add multiple disks?
|
* ### How do I add multiple disks?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user