arv-v-dsm/readme.md

65 lines
1.6 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 23:54:04 +07:00
[![build_img]][build_url]
2023-03-28 23:52:01 +07:00
[![gh_last_release_svg]][dsm-docker-hub]
[![Docker Image Size]][dsm-docker-hub]
2023-03-27 02:21:13 +07:00
[![Docker Pulls Count]][dsm-docker-hub]
2023-03-28 23:54:04 +07:00
[build_url]: https://github.com/kroese/virtual-dsm/actions
2023-03-29 00:11:49 +07:00
[build_img]: https://github.com/kroese/virtual-dsm/actions/workflows/build.yml/badge.svg
2023-03-27 02:21:13 +07:00
[dsm-docker-hub]: https://hub.docker.com/r/kroese/virtual-dsm
2023-03-28 23:52:01 +07:00
[Docker Image Size]: https://img.shields.io/docker/image-size/kroese/virtual-dsm/latest
[Docker Pulls Count]: https://img.shields.io/docker/pulls/kroese/virtual-dsm.svg?style=flat
[gh_last_release_svg]: https://img.shields.io/docker/v/kroese/virtual-dsm?arch=amd64&sort=date
2019-03-18 04:44:21 +07:00
2023-03-30 08:21:15 +07:00
A docker container of Synology DSM v7.2
2019-03-14 12:25:01 +07:00
## Using the container
Via `docker run`:
```bash
$ docker run --rm -it \
2023-03-28 10:14:54 +07:00
--name dsm \
2023-03-28 10:22:02 +07:00
-e DISK_SIZE=16G \
-e RAM_SIZE=512M \
2023-03-28 10:20:25 +07:00
-p 80:5000 \
-p 443:5001 \
2023-03-28 00:53:30 +07:00
-p 5000:5000 \
2023-03-28 10:14:21 +07:00
-p 5001:5001 \
2023-03-30 08:21:15 +07:00
--privileged \
2023-03-27 01:37:18 +07:00
--cap-add NET_ADMIN \
2023-03-28 00:53:30 +07:00
--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-30 08:21:15 +07:00
container_name: dsm
2023-03-27 01:37:18 +07:00
image: kroese/virtual-dsm:latest
2023-03-28 10:22:02 +07:00
environment:
DISK_SIZE: "16G"
RAM_SIZE: "512M"
2019-03-14 12:25:01 +07:00
cap_add:
- NET_ADMIN
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:
2023-03-28 10:20:25 +07:00
- 80:5000
- 443:5001
2023-03-27 01:37:18 +07:00
- 5000:5000
2023-03-28 10:14:21 +07:00
- 5001:5001
2023-03-30 08:21:15 +07:00
privileged: true
2023-03-29 00:30:42 +07:00
restart: on-failure
2019-03-14 12:25:01 +07:00
```