mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
Update readme.md
This commit is contained in:
parent
d578eddc98
commit
b0b44657c0
18
readme.md
18
readme.md
@ -12,9 +12,12 @@ Via `docker run`:
|
||||
|
||||
```bash
|
||||
$ docker run --rm -it \
|
||||
--device=/dev/kvm:/dev/kvm --device=/dev/net/tun:/dev/net/tun \
|
||||
--cap-add NET_ADMIN -v $VM_IMAGE_FILE:/image \
|
||||
jkz0/qemu:latest
|
||||
--device=/dev/kvm:/dev/kvm \
|
||||
--device=/dev/net/tun:/dev/net/tun \
|
||||
--cap-add NET_ADMIN \
|
||||
-p 5000:5000 -p 5001:5001 \
|
||||
-v /home/user/images:/image \
|
||||
kroese/virtual-dsm:latest
|
||||
```
|
||||
|
||||
Via `docker-compose.yml`:
|
||||
@ -23,14 +26,17 @@ Via `docker-compose.yml`:
|
||||
version: "3"
|
||||
services:
|
||||
vm:
|
||||
image: jkz0/qemu:latest
|
||||
image: kroese/virtual-dsm:latest
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
devices:
|
||||
- /dev/net/tun
|
||||
- /dev/kvm
|
||||
- /dev/net/tun
|
||||
ports:
|
||||
- 5000:5000
|
||||
- 5001:5001
|
||||
volumes:
|
||||
- ${VM_IMAGE:?VM image must be supplied}:/image
|
||||
- /home/user/images:/image
|
||||
restart: always
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user