Great Job :).
When i run from docker run all works great but all settings are default:
docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 60 kroese/virtual-dsm:latest
When i tried run from docker compose (docker compose up) i see this error:
PS D:\Docker\Synology> docker compose up
[+] Running 7/7
✔ dsm 6 layers [⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 7.3s
✔ faef57eae888 Pull complete 3.8s
✔ e527efa5da78 Pull complete 4.9s
✔ 74472c98d88b Pull complete 4.9s
✔ 5319b1149e9f Pull complete 4.9s
✔ f6a43b34e6fa Pull complete 5.0s
✔ 795699eb0689 Pull complete 5.0s
[+] Running 2/2
✔ Network synology_default Created 0.0s
✔ Container dsm Created 0.1s
Attaching to dsm
dsm | ❯ Starting Virtual DSM for Docker v4.12...
dsm | char device redirected to /dev/pts/0 (label charserial0)
dsm | qemu-system-x86_64: -drive file=/storage/DSM_VirtualDSM_64570.boot.img,if=none,id=drive-synoboot,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on: Could not open '/storage/DSM_VirtualDSM_64570.boot.img': filesystem does not support O_DIRECT
dsm exited with code 0
PS D:\Docker\Synology>
My docker-compose.yml:
version: "3"
services:
dsm:
container_name: dsm
image: kroese/virtual-dsm:latest
environment:
DISK_SIZE: "4096G"
ALLOCATE: "N"
CPU_CORES: "4"
RAM_SIZE: "4096M"
devices:
- /dev/kvm
- /dev/vhost-net
cap_add:
- NET_ADMIN
ports:
- 5000:5000
volumes:
- /opt/dsm:/storage
restart: on-failure
stop_grace_period: 1m
Im fresh in docker and maybe im doing something wrong.
Platform: Windows 11 Pro.