Docker
Some of these steps may not apply to your installation. Understand what they do, and ignore, or customize as necessary.
Preparation
For operating system support and service packages.
Debian Linux
Install Docker (Engine): https://docs.docker.com/engine/install/debian/
Fedora Linux
Install Docker (Engine): https://docs.docker.com/engine/install/fedora/
Extra instructions
sudo usermod -a -G docker <username>;
Re-login or restart the machine.
sudo su -;
mkdir /srv/UMS;
chcon -t svirt_sandbox_file_t /srv/UMS;
chgrp docker /srv/UMS;
chmod -R g+w /srv/UMS;
Mount storage to host and link into that directory, probably read-only. mount <Videos-Share> '/srv/UMS/Videos'
Test example: Simple symlinking to another path on the host system may not work, since there will be no access to it outside of the mounted volume path for the docker container. Try copying files inside this location instead.
Container Setup
Mount the following volumes:
- Media folder
/media
- Profile folder containing UMS.conf
/profile
Expose/forward these ports from the host: 1044, 5001, 9001.
The following scripts accomplish that (using the fish shell):
sudo su -;
set rootDir "$HOME/.config/UMS";
mkdir -p "$rootDir/data";
docker pull universalmediaserver/ums;
docker create --name UMS \
-p 1044:1044 -p 5001:5001 -p 9001:9001 \
-v /srv/UMS:/root/media \
-v "$HOME/.config/UMS":/root/.config/UMS \
universalmediaserver/ums \
;
docker start UMS;