i decided i want my own user on my raspberry pi and moved my containers from Raspbian’s default user pi
to my user newpiuser
.
now some containers aren’t functioning properly anymore, for example, nzbget and transmission seem unable to write to their volumes, freshrss and plex are functioning properly. and sabnzbd is unavailable on its port 8080
after moving the folders to their new home and running sudo chown -R newpiuser:newpiuser Downloads/ .freshrss/ .nzbget/ .sabnzbd/ .transmission/
and running docker-compose up -d
from my own user newpiuser
. for some reason, the ownership of all volumes get changed back to Raspbian’s default user pi
.
compose file
version: "2.1"
services:
plex:
image: linuxserver/plex
container_name: plex
network_mode: host
environment:
- PUID=1000
- PGID=1000
- VERSION=latest
- UMASK_SET=022 #optional
- PLEX_CLAIM= #optional
volumes:
- /home/newpiuser/.plex/config:/config
- /home/newpiuser/.plex/data/Storage:/storage
restart: unless-stopped
transmission:
image: linuxserver/transmission
container_name: transmission
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- TRANSMISSION_WEB_HOME=/combustion-release/ #optional
# - USER=username #optional
# - PASS=password #optional
volumes:
- /home/newpiuser/.transmission:/config
- /home/newpiuser/Downloads:/downloads
- /home/newpiuser/Downloads:/watch
ports:
- 9091:9091
- 51413:51413
- 51413:51413/udp
restart: unless-stopped
freshrss:
image: linuxserver/freshrss
container_name: freshrss
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- /home/newpiuser/.freshrss:/config
ports:
- 8081:80
restart: unless-stopped
sabnzbd:
image: linuxserver/sabnzbd
container_name: sabnzbd
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- /home/newpiuser/.sabnzbd:/config
- /home/newpiuser/Downloads:/downloads
# - /home/newpiuser/Downloads:/incomplete-downloads #optional
ports:
- 8080:8080
- 9090:9090
restart: unless-stopped
nzbget:
image: linuxserver/nzbget
container_name: nzbget
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- /home/newpiuser/.nzbget:/config
- /home/newpiuser/Downloads:/downloads
ports:
- 6789:6789
restart: unless-stopped
ownership in my home folder
drwxr-xr-x 27 newpiuser newpiuser 4096 Jun 7 20:01 .
drwxr-xr-x 4 root root 4096 May 29 00:14 ..
-rw------- 1 newpiuser newpiuser 35211 Jun 7 19:55 .bash_history
-rw-r--r-- 1 newpiuser newpiuser 220 May 25 20:51 .bash_logout
-rw-r--r-- 1 newpiuser newpiuser 3523 May 25 20:51 .bashrc
drwxr-xr-x 8 newpiuser newpiuser 4096 May 29 02:43 .cache
drwx------ 10 newpiuser newpiuser 4096 Jun 7 19:40 .config
drwxr-x--- 2 newpiuser newpiuser 4096 May 30 18:42 configs
drwxr-xr-x 2 newpiuser newpiuser 4096 May 29 02:41 Desktop
-rw-r--r--+ 1 newpiuser newpiuser 1967 Jun 7 18:50 docker-compose.yml
drwxr-xr-x 2 newpiuser newpiuser 4096 May 29 02:41 Documents
drwxr-xr-x 9 pi pi 4096 May 24 01:44 Downloads
-rw-r--r--+ 1 newpiuser newpiuser 6148 Jun 7 20:01 .DS_Store
drwxr-xr-x 8 pi pi 4096 May 14 00:04 .freshrss
drwx------ 3 newpiuser newpiuser 4096 May 25 20:55 .gnupg
-rw-r--r--+ 1 newpiuser newpiuser 88 Apr 12 13:36 .inputrc
drwxr-xr-x 2 newpiuser newpiuser 4096 Feb 13 17:03 MagPi
drwx------ 4 newpiuser newpiuser 4096 May 29 02:43 .mozilla
drwxr-xr-x 2 newpiuser newpiuser 4096 Feb 13 17:16 Music
drwxr-xr-x 2 pi pi 4096 May 24 01:19 .nzbget
drwxr-xr-x 2 newpiuser newpiuser 4096 May 29 02:41 Pictures
drwx------ 3 newpiuser newpiuser 4096 May 29 02:43 .pki
drwxr-xr-x 4 newpiuser newpiuser 4096 Jun 1 18:39 .plex
drwx------ 3 newpiuser newpiuser 4096 May 31 07:58 .pp_backup
-rw-r--r-- 1 newpiuser newpiuser 807 May 25 20:51 .profile
drwxr-xr-x 2 newpiuser newpiuser 4096 May 29 02:41 Public
drwxr-xr-x 6 pi pi 4096 May 18 22:07 .sabnzbd
drwx------ 2 newpiuser newpiuser 4096 May 26 13:46 .ssh
drwxrwxr-x+ 12 newpiuser newpiuser 4096 Jun 1 18:17 Storage
drwxr-xr-x 2 newpiuser newpiuser 4096 May 29 02:41 Templates
drwxr-xr-x 5 pi pi 4096 Jun 7 19:56 .transmission
drwxr-xr-x 2 newpiuser newpiuser 4096 May 29 02:41 Videos
drwx------ 3 newpiuser newpiuser 4096 May 29 11:03 .vnc
drwxr-xr-x 3 newpiuser newpiuser 4096 Jun 7 19:40 .vscode-oss
-rw-r--r-- 1 newpiuser newpiuser 209 May 30 18:41 .wget-hsts
-rw------- 1 newpiuser newpiuser 49 Jun 7 19:56 .Xauthority
-rw------- 1 newpiuser newpiuser 2537 Jun 7 19:56 .xsession-errors
-rw------- 1 newpiuser newpiuser 2537 Jun 7 19:37 .xsession-errors.old
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7c0d24ca600a linuxserver/sabnzbd "/init" 44 minutes ago Up 16 minutes 0.0.0.0:8080->8080/tcp, 0.0.0.0:9090->9090/tcp sabnzbd
11fe205ecb90 linuxserver/nzbget "/init" 44 minutes ago Up 16 minutes 0.0.0.0:6789->6789/tcp nzbget
4978cbebae61 linuxserver/transmission "/init" 44 minutes ago Up 16 minutes 0.0.0.0:9091->9091/tcp, 0.0.0.0:51413->51413/tcp, 0.0.0.0:51413->51413/udp transmission
f203c6f5c6fa linuxserver/freshrss "/init" 44 minutes ago Up 16 minutes 443/tcp, 0.0.0.0:8081->80/tcp freshrss
d23b89343bb5 linuxserver/plex "/init" 44 minutes ago Up 16 minutes plex