virtual-dsm/readme.md

58 lines
1.5 KiB
Markdown
Raw Normal View History

2023-03-26 21:23:15 +02:00
virtual-dsm
=============
2019-03-13 22:25:01 -07:00
2023-03-26 21:21:13 +02:00
[![Build Status]][builds]
[![Test]][test]
[![gh_last_release_svg]][gh_last_release_url]
[![Docker Pulls Count]][dsm-docker-hub]
[Build Status]: https://github.com/kroese/virtual-dsm/workflows/Build%20&%20deploy%20on%20git%20tag%20push/badge.svg
[builds]: https://github.com/kroese/virtual-dsm/actions?query=workflow%3A%22Build+%26+deploy+on+git+tag+push%22
[test]: https://github.com/kroese/virtual-dsm/actions/workflows/test.yaml/badge.svg
[gh_last_release_svg]: https://img.shields.io/github/v/release/kroese/virtual-dsm?sort=semver
[gh_last_release_url]: https://github.com/kroese/virtual-dsm/releases/latest
[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-17 14:44:21 -07:00
2023-03-26 20:44:23 +02:00
A docker container for running Synology's Virtual DSM.
2019-03-13 22:25:01 -07:00
## Using the container
Via `docker run`:
```bash
$ docker run --rm -it \
2023-03-27 19:53:30 +02:00
-p 5000:5000 \
2023-03-26 20:37:18 +02:00
--cap-add NET_ADMIN \
2023-03-27 19:53:30 +02:00
--cap-add SYS_ADMIN \
--device=/dev/kvm:/dev/kvm \
--device=/dev/fuse:/dev/fuse \
--device=/dev/net/tun:/dev/net/tun \
2023-03-26 22:23:01 +02:00
-v /home/user/images:/images \
2023-03-26 20:37:18 +02:00
kroese/virtual-dsm:latest
2019-03-13 22:25:01 -07:00
```
Via `docker-compose.yml`:
```yaml
version: "3"
services:
vm:
2023-03-26 20:37:18 +02:00
image: kroese/virtual-dsm:latest
2019-03-13 22:25:01 -07:00
cap_add:
- NET_ADMIN
2023-03-27 19:53:30 +02:00
- SYS_ADMIN
2019-03-13 22:25:01 -07:00
devices:
- /dev/kvm
2023-03-27 19:53:30 +02:00
- /dev/fuse
2023-03-26 20:37:18 +02:00
- /dev/net/tun
ports:
- 5000:5000
2019-03-13 22:25:01 -07:00
volumes:
2023-03-26 22:23:01 +02:00
- /home/user/images:/images
2019-03-13 22:25:01 -07:00
restart: always
```