arv-v-dsm/readme.md

56 lines
1.3 KiB
Markdown
Raw Normal View History

2023-03-27 02:23:15 +07:00
virtual-dsm
=============
2019-03-14 12:25:01 +07:00
2023-03-28 02:31:00 +07:00
[![test_img]][test_url]
2023-03-27 02:21:13 +07:00
[![gh_last_release_svg]][gh_last_release_url]
[![Docker Pulls Count]][dsm-docker-hub]
2023-03-28 02:31:00 +07:00
[test_img]: https://github.com/kroese/virtual-dsm/actions/workflows/test.yaml/badge.svg
[test_url]: https://github.com/kroese/virtual-dsm/actions
2023-03-27 02:21:13 +07:00
2023-03-28 02:39:28 +07:00
[gh_last_release_svg]: https://img.shields.io/docker/v/kroese/virtual-dsm?arch=amd64&sort=date
[gh_last_release_url]: https://hub.docker.com/r/kroese/virtual-dsm
2023-03-27 02:21:13 +07:00
[Docker Pulls Count]: https://img.shields.io/docker/pulls/kroese/virtual-dsm.svg?style=flat
[dsm-docker-hub]: https://hub.docker.com/r/kroese/virtual-dsm
2019-03-18 04:44:21 +07:00
2023-03-28 00:55:19 +07:00
A docker container that runs Synology's Virtual DSM v7.
2019-03-14 12:25:01 +07:00
## Using the container
Via `docker run`:
```bash
$ docker run --rm -it \
2023-03-28 00:53:30 +07:00
-p 5000:5000 \
2023-03-28 03:45:54 +07:00
-e DISK_SIZE=16G \
2023-03-27 01:37:18 +07:00
--cap-add NET_ADMIN \
2023-03-28 00:53:30 +07:00
--cap-add SYS_ADMIN \
--device=/dev/kvm:/dev/kvm \
--device=/dev/fuse:/dev/fuse \
--device=/dev/net/tun:/dev/net/tun \
2023-03-27 01:37:18 +07:00
kroese/virtual-dsm:latest
2019-03-14 12:25:01 +07:00
```
Via `docker-compose.yml`:
```yaml
version: "3"
services:
vm:
2023-03-27 01:37:18 +07:00
image: kroese/virtual-dsm:latest
2019-03-14 12:25:01 +07:00
cap_add:
- NET_ADMIN
2023-03-28 00:53:30 +07:00
- SYS_ADMIN
2019-03-14 12:25:01 +07:00
devices:
- /dev/kvm
2023-03-28 00:53:30 +07:00
- /dev/fuse
2023-03-27 01:37:18 +07:00
- /dev/net/tun
ports:
- 5000:5000
2023-03-28 03:35:40 +07:00
environment:
2023-03-28 03:45:54 +07:00
DISK_SIZE: 16G
2019-03-14 12:25:01 +07:00
restart: always
```