A docker container of Virtual DSM v7.2
- Upgrades supported
- KVM acceleration (optional)
- Runs on Linux/Windows/MacOS
Via docker-compose.yml
:
version: "3"
services:
vm:
container_name: dsm
image: kroese/virtual-dsm:latest
environment:
DISK_SIZE: "16G"
RAM_SIZE: "512M"
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 80:5000
- 443:5001
- 5000:5000
- 5001:5001
restart: on-failure
Via docker run
:
$ docker run -p 5000:5000 --cap-add NET_ADMIN --device=/dev/kvm kroese/virtual-dsm:latest
-
By default it is 16GB, but you can modify the
DISK_SIZE
setting in your compose file:environment: DISK_SIZE: "16G"
To create an empty disk with a maximum capacity of 8 terabyte you would use a value of
"8T"
for example. -
By default it resides inside a docker volume, but you can add these lines to your compose file:
volumes: - /home/user/data:/storage
Just replace
/home/user/data
with the path to the folder you want to use for storage. -
By default it installs vDSM 7.2, but if you want to use an older version you can add its URL to your compose file:
environment: URL: "https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
You can also switch back and forth between versions this way without loosing your file data.
-
There are only two minor differences: the Virtual Machine Manager package is not available and Surveillance Station does not include any free licenses.
Partly based on an article by JXCN.