It is currently Mon Jan 18, 2021 6:50 am
All times are UTC + 8 hours
SONARR=$(docker ps -a|grep -i sonarr|awk '{print $NF}') && docker stop $SONARR && docker rm -f $SONARR
docker create -i -t --name=Sonarr \
-p 18989:8989 \
-e PUID=999 -e PGID=999 \
-v /etc/localtime:/etc/localtime:ro \
-v /volume1/Docker/Sonarr/config:/config:rw \
-v /volume1/Docker/Sonarr/tv:/tv:rw \
-v /volume1/Download:/downloads:rw \
-v /volume1/Video:/videos:rw \
-v /volume1/Media:/media:rw \
--restart unless-stopped \
linuxserver/sonarr:latest
docker start Sonarr
Nazar78 wrote:Just bind the host path you want to appear in the container. Two ways to do this, first method is by editing the two container json files (config.v2.json/hostconfig.json) which you'll need to stop the container first then restart the main docker daemon after editing. This is not recommended unless you're very familiar with what you're about to do. Second method, just stop then remove the existing container, recreate it with the the bind you desire. I assumed you installed from the guide in docker hub since you were asking about Sonarr V3 recently?
Stop then remove existing Sonarr container "docker stop sonarr;docker rm sonarr", use "docker ps -a" if you can't remember the name or run below:
- Code: Select all
SONARR=$(docker ps -a|grep -i sonarr|awk '{print $NF}') && docker stop $SONARR && docker rm -f $SONARR
Recreate the container with the bind you wanted (this is the original container created by Patrick on Asustor app central with added Media bind sample, edit as you wish):
- Code: Select all
docker create -i -t --name=Sonarr \
-p 18989:8989 \
-e PUID=999 -e PGID=999 \
-v /etc/localtime:/etc/localtime:ro \
-v /volume1/Docker/Sonarr/config:/config:rw \
-v /volume1/Docker/Sonarr/tv:/tv:rw \
-v /volume1/Download:/downloads:rw \
-v /volume1/Video:/videos:rw \
-v /volume1/Media:/media:rw \
--restart unless-stopped \
linuxserver/sonarr:latest
Start it up:
- Code: Select all
docker start Sonarr
Users browsing this forum: No registered users and 1 guest