$ git clone https://github.com/app4rpi/docker-minidlna.git
$ cd docker-minidlna
$ nano <configfile>
$ mkdir docker-minidlna && cd docker-minidlna
$ nano Dockerfile
$ nano entrypoint.sh
$ nano minidlna.conf
$ docker build --rm -t docker-minidlna .
The image docker-minidlna:latest has been created with a size of 43.1MB
$ docker run -d --name minidlna --net=host docker-minidlna:latest
$ docker run -d --name minidlna --net=host docker-minidlna:latest -R
$ docker run -d --restart always --name minidlna --net=host docker-minidlna:latest
3d. Run in a container with different media directories and a container volume of databases and with automatic startup
$ docker run -d --restart always --name minidlna --net=host \
-v /var/media/musica:/media/music -v /media/ssd1/musica:/media/m1 \
-v /var/media/video:/media/video -v /media/ssd1/VideoClips:/media/v1 \
--mount source=minidlna,target=/var/cache/minidlna docker-minidlna:latest
$ docker exec -it minidlna /bin/bash
$ docker start minidlna
$ docker stop minidlna
$ docker rm minidlna