Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker issues #7

Open
goofballtech opened this issue Mar 22, 2019 · 0 comments
Open

Docker issues #7

goofballtech opened this issue Mar 22, 2019 · 0 comments

Comments

@goofballtech
Copy link

Running docker on unraid and had a time getting it all working. Had to map the docker instance and commands into the container and tweak the ssh commands a bit to get the remote side to connect properly. Wanted to share in case it helps anyone else int he future.

docker run -d 
--name='plex-db-sync' 
-e 'CRON'='0 0,4 ? * 1/7 *' 

-e 'DEBUG'='false' 
-e 'S1_SSH_USER'='root' 
-e 'S1_SSH_PORT'='22' 
-e 'S1_SSH_HOST'='1.1.1.1'
-e 'S1_SSH_KEY'='/sshkey/MyPrivKey.txt' 
-e 'S1_SSH_PATH'='/opt/appdata/plex/database/Library/Application Support/Plex Media Server/Plug-in Support/Databases/' 
-e 'S1_STOP'='ssh -o '\''StrictHostKeyChecking=no'\'' -i /sshkey/MyPrivKey.txt [email protected] '\''docker stop plex'\''' 
-e 'S1_START'='ssh -o '\''StrictHostKeyChecking=no'\'' -i /sshkey/MyPrivKey.txt [email protected] '\''docker start plex'\''' 

-e 'S2_DB_PATH'='/mnt/S2' 
-v '/mnt/user/appdata/plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases':'/mnt/S2':'rw'
-e 'S2_STOP'='docker stop plex' 
-e 'S2_START'='docker start plex' 

-v '/usr/bin/docker':'/usr/bin/docker':'rw' 
-v '/var/run/docker.sock':'/var/run/docker.sock':'rw' 
-v '/etc/localtime':'/etc/localtime':'ro' 
-v '/mnt/user/appdata/plex-db-sync/sshkey':'/sshkey':'rw' 
--cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined 'nowsci/plex-db-sync'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant