arv-v-dsm/readme.md
2023-03-28 05:22:02 +02:00

1.5 KiB

virtual-dsm

test_img gh_last_release_svg Docker Pulls Count

A docker container of Synology DSM v7.1

Using the container

Via docker run:

$ docker run --rm -it \
    --name dsm \
    -e DISK_SIZE=16G \
    -e RAM_SIZE=512M \
    -p 80:5000 \
    -p 443:5001 \
    -p 5000:5000 \
    -p 5001:5001 \
    --cap-add NET_ADMIN \
    --cap-add SYS_ADMIN \
    --device=/dev/kvm:/dev/kvm \
    --device=/dev/fuse:/dev/fuse \
    --device=/dev/net/tun:/dev/net/tun \    
    kroese/virtual-dsm:latest

Via docker-compose.yml:

version: "3"
services:
    vm:
        container_name: dsm
        image: kroese/virtual-dsm:latest
        environment:
            DISK_SIZE: "16G"
            RAM_SIZE: "512M"
        cap_add:
            - NET_ADMIN
            - SYS_ADMIN
        devices:
            - /dev/kvm
            - /dev/fuse
            - /dev/net/tun
        ports:
            - 80:5000
            - 443:5001
            - 5000:5000
            - 5001:5001
        restart: always