virtual-dsm/readme.md

70 lines
1.6 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-28 18:54:04 +02:00
[![build_img]][build_url]
2023-03-28 18:52:01 +02:00
[![gh_last_release_svg]][dsm-docker-hub]
[![Docker Image Size]][dsm-docker-hub]
2023-03-26 21:21:13 +02:00
[![Docker Pulls Count]][dsm-docker-hub]
2023-03-28 18:54:04 +02:00
[build_url]: https://github.com/kroese/virtual-dsm/actions
2023-03-26 21:21:13 +02:00
[dsm-docker-hub]: https://hub.docker.com/r/kroese/virtual-dsm
2023-04-03 14:14:15 +02:00
[build_img]: https://github.com/kroese/virtual-dsm/actions/workflows/build.yml/badge.svg
2023-03-28 18:52:01 +02: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-17 14:44:21 -07:00
2023-04-03 00:29:32 +02:00
A docker container of Virtual DSM v7.2
## Features
- Upgrades supported
- KVM acceleration (optional)
## Platforms
- Linux x86-64
2019-03-13 22:25:01 -07:00
2023-04-03 00:40:09 +02:00
## Usage
2019-03-13 22:25:01 -07:00
Via `docker-compose.yml`:
```yaml
version: "3"
services:
vm:
2023-03-30 03:22:36 +02:00
container_name: dsm
2023-03-26 20:37:18 +02:00
image: kroese/virtual-dsm:latest
2023-03-28 05:22:02 +02:00
environment:
DISK_SIZE: "16G"
RAM_SIZE: "512M"
2019-03-13 22:25:01 -07:00
cap_add:
- NET_ADMIN
devices:
- /dev/kvm
2023-03-26 20:37:18 +02:00
- /dev/net/tun
ports:
2023-03-28 05:20:25 +02:00
- 80:5000
- 443:5001
2023-03-26 20:37:18 +02:00
- 5000:5000
2023-03-28 05:14:21 +02:00
- 5001:5001
2023-03-28 19:30:42 +02:00
restart: on-failure
2019-03-13 22:25:01 -07:00
```
2023-04-03 00:38:53 +02:00
Via `docker run`:
```bash
$ 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 \
--device="/dev/kvm:/dev/kvm" \
--device="/dev/net/tun:/dev/net/tun" \
kroese/virtual-dsm:latest
```