arv-v-dsm/readme.md

83 lines
1.9 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-27 02:21:13 +07:00
[dsm-docker-hub]: https://hub.docker.com/r/kroese/virtual-dsm
2023-04-03 19:14:15 +07:00
[build_img]: https://github.com/kroese/virtual-dsm/actions/workflows/build.yml/badge.svg
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-04-03 05:29:32 +07:00
A docker container of Virtual DSM v7.2
## Features
- Upgrades supported
- KVM acceleration (optional)
## Platforms
- Linux x86-64
2019-03-14 12:25:01 +07:00
2023-04-03 05:40:09 +07:00
## Usage
2019-03-14 12:25:01 +07:00
Via `docker-compose.yml`:
```yaml
version: "3"
services:
vm:
2023-03-30 08:22:36 +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-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-29 00:30:42 +07:00
restart: on-failure
2019-03-14 12:25:01 +07:00
```
2023-04-03 05:38:53 +07: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
```
2023-04-03 22:48:49 +07:00
## FAQ
- How do I change the location of the virtual disk?
By default it resides inside a docker volume, but you can add a bind mount to your compose file like this:
```
volumes:
- /home/user/data:/storage
```
2023-04-03 22:51:37 +07:00
to map `/storage` to any local folder you want to use. Just replace `/home/user/data` with the correct path.