From 7604a486880e5044cc6aa5318ef6f03ec26a7c7a Mon Sep 17 00:00:00 2001 From: Kris Noble <872971+krisnoble@users.noreply.github.com> Date: Tue, 8 Aug 2023 13:35:21 +0100 Subject: [PATCH] Readme: Add data directory mount to docker run command and explanatory note (#824) * add data directory mount and note to avoid losing data between updates --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cabd07b7..a7fc6344 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ By far the most convenient way to run the Music Assistant Server is to install t An alternative way to run the Music Assistant server is by running the docker image: ``` -docker run --network host --privileged ghcr.io/music-assistant/server +docker run --network host --privileged -v :/data ghcr.io/music-assistant/server ``` -You must run the docker container with host network mode and the data volume is `/data`. +You must run the docker container with host network mode. The data volume is `/data` - replace `` with a writable directory to ensure the data volume persists between updates. If you want access to your local music files from within MA, make sure to also mount that, e.g. /media. Note that accessing remote (SMB) shares can be done from within MA itself using the SMB File provider (but requires the privileged flag). -- 2.34.1