Dockerization of some popular applications.


Recommended Posts

 

Hi Nacat,

 

Can you please clarify your fix? I installed transmission and got the same error as botez. If I stop the container and go the container folder (presumably under the docker folder on the btfrs drive) I only see 3 files:

 

config.json

hostconfig.json

hosts

 

I don't see where the XML file goes, and I don't have the settings.json file you mention.

 

Could you elaborate a bit further please?

 

 

2n00n61.png

 

@bkastner

 

The XML should be put in the /boot/config/docker folder - filename - my-Transmission.xml - after that is put into that folder add the container using gfjardim's Extended Docker plugin.

 

after the container and image are on your system stop the container and you should be able to go to the install/config location for transmission and edit settings.json file

 

{
    "alt-speed-down": 50, 
    "alt-speed-enabled": false, 
    "alt-speed-time-begin": 540, 
    "alt-speed-time-day": 127, 
    "alt-speed-time-enabled": false, 
    "alt-speed-time-end": 1020, 
    "alt-speed-up": 50, 
    "bind-address-ipv4": "0.0.0.0", 
    "bind-address-ipv6": "::", 
    "blocklist-enabled": false, 
    "blocklist-url": "http://www.example.com/blocklist", 
    "cache-size-mb": 4, 
    "dht-enabled": true, 
    "download-dir": "/downloads/downloaded", 
    "download-limit": 100, 
    "download-limit-enabled": 0, 
    "download-queue-enabled": true, 
    "download-queue-size": 5, 
    "encryption": 1, 
    "idle-seeding-limit": 30, 
    "idle-seeding-limit-enabled": false, 
    "incomplete-dir": "/downloads/incomplete", 
    "incomplete-dir-enabled": true, 
    "lpd-enabled": false, 
    "max-peers-global": 200, 
    "message-level": 2, 
    "peer-congestion-algorithm": "", 
    "peer-id-ttl-hours": 6, 
    "peer-limit-global": 200, 
    "peer-limit-per-torrent": 50, 
    "peer-port": 54321, 
    "peer-port-random-high": 65535, 
    "peer-port-random-low": 49152, 
    "peer-port-random-on-start": false, 
    "peer-socket-tos": "default", 
    "pex-enabled": true, 
    "port-forwarding-enabled": true, 
    "preallocation": 1, 
    "prefetch-enabled": 1, 
    "queue-stalled-enabled": true, 
    "queue-stalled-minutes": 30, 
    "ratio-limit": 2, 
    "ratio-limit-enabled": false, 
    "rename-partial-files": true, 
    "rpc-authentication-required": true, 
    "rpc-bind-address": "0.0.0.0", 
    "rpc-enabled": true, 
    "rpc-password": "{a35338cbbaa31c9d0048c13d7008d077478ed493zhFvqwad", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "nacat78", 
    "rpc-whitelist": "127.0.0.1", 
    "rpc-whitelist-enabled": false, 
    "scrape-paused-torrents-enabled": true, 
    "script-torrent-done-enabled": false, 
    "script-torrent-done-filename": "", 
    "seed-queue-enabled": false, 
    "seed-queue-size": 10, 
    "speed-limit-down": 100, 
    "speed-limit-down-enabled": false, 
    "speed-limit-up": 100, 
    "speed-limit-up-enabled": false, 
    "start-added-torrents": true, 
    "trash-original-torrent-files": false, 
    "umask": 18, 
    "upload-limit": 100, 
    "upload-limit-enabled": 0, 
    "upload-slots-per-torrent": 14, 
    "utp-enabled": true, 
    "watch-dir": "/downloads", 
    "watch-dir-enabled": true
}

 

edit rpc-username line with "your username"

edit rpc-password line with "your password"

save file, and start transmission container - first time you start container after changing password - it will encrypt it.

 

If everything is setup correctly - your should be able to access the transmission web gui via tower:9091 or ipaddress:9091 and login.

Link to comment

bkastner -- When I used nacat78's instructions previously, I got the docker container to work.

 

Also, anyone using my transmission docker should delete it.  It's not as good as the gfjardem transmission docker, so I would recommend staying away from it.

Link to comment

Needo: Would be it possible to get containers for transmission and flexget from you? I am running everything else under your containers and am hoping to keep this as neat as possible. I am trying to get gfjardim's transmission going but having hiccups.

 

Thanks.

Looks like gfjardim rebuilt his this morning with phusion, so that should clean it up some. It is working for me.

 

The only docker I have that is not phusion is logitechmediaserver. Anyone want to take that on?

Link to comment

Thanks gfjardim.

 

I am afraid this doesn't fix the permission problem I have on the NZBGet download folder, thinking of trying this?

http://nzbget.net/forum/viewtopic.php?f=8&t=835

 

NZBGet has a similar setting under Settings - Security - UMask.  Since this is a UMask setting, the value is kind of the opposite of the chmod settings in many other applications; you are specifying which permissions are not enabled in newly created files.  A value of 000 will produce files with the same permissions as the unRAID New Permissions utility (files: 666, directories: 777).

Link to comment

Thanks gfjardim.

 

I am afraid this doesn't fix the permission problem I have on the NZBGet download folder, thinking of trying this?

http://nzbget.net/forum/viewtopic.php?f=8&t=835

 

NZBGet has a similar setting under Settings - Security - UMask.  Since this is a UMask setting, the value is kind of the opposite of the chmod settings in many other applications; you are specifying which permissions are not enabled in newly created files.  A value of 000 will produce files with the same permissions as the unRAID New Permissions utility (files: 666, directories: 777).

 

Nope, New Permissions set directories to 770 and files to 660. The umask should be 007 and 006, respectively.

Link to comment

 

Hi Nacat,

 

Can you please clarify your fix? I installed transmission and got the same error as botez. If I stop the container and go the container folder (presumably under the docker folder on the btfrs drive) I only see 3 files:

 

config.json

hostconfig.json

hosts

 

I don't see where the XML file goes, and I don't have the settings.json file you mention.

 

Could you elaborate a bit further please?

 

 

2n00n61.png

 

@bkastner

 

The XML should be put in the /boot/config/docker folder - filename - my-Transmission.xml - after that is put into that folder add the container using gfjardim's Extended Docker plugin.

 

after the container and image are on your system stop the container and you should be able to go to the install/config location for transmission and edit settings.json file

 

{
    "alt-speed-down": 50, 
    "alt-speed-enabled": false, 
    "alt-speed-time-begin": 540, 
    "alt-speed-time-day": 127, 
    "alt-speed-time-enabled": false, 
    "alt-speed-time-end": 1020, 
    "alt-speed-up": 50, 
    "bind-address-ipv4": "0.0.0.0", 
    "bind-address-ipv6": "::", 
    "blocklist-enabled": false, 
    "blocklist-url": "http://www.example.com/blocklist", 
    "cache-size-mb": 4, 
    "dht-enabled": true, 
    "download-dir": "/downloads/downloaded", 
    "download-limit": 100, 
    "download-limit-enabled": 0, 
    "download-queue-enabled": true, 
    "download-queue-size": 5, 
    "encryption": 1, 
    "idle-seeding-limit": 30, 
    "idle-seeding-limit-enabled": false, 
    "incomplete-dir": "/downloads/incomplete", 
    "incomplete-dir-enabled": true, 
    "lpd-enabled": false, 
    "max-peers-global": 200, 
    "message-level": 2, 
    "peer-congestion-algorithm": "", 
    "peer-id-ttl-hours": 6, 
    "peer-limit-global": 200, 
    "peer-limit-per-torrent": 50, 
    "peer-port": 54321, 
    "peer-port-random-high": 65535, 
    "peer-port-random-low": 49152, 
    "peer-port-random-on-start": false, 
    "peer-socket-tos": "default", 
    "pex-enabled": true, 
    "port-forwarding-enabled": true, 
    "preallocation": 1, 
    "prefetch-enabled": 1, 
    "queue-stalled-enabled": true, 
    "queue-stalled-minutes": 30, 
    "ratio-limit": 2, 
    "ratio-limit-enabled": false, 
    "rename-partial-files": true, 
    "rpc-authentication-required": true, 
    "rpc-bind-address": "0.0.0.0", 
    "rpc-enabled": true, 
    "rpc-password": "{a35338cbbaa31c9d0048c13d7008d077478ed493zhFvqwad", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "nacat78", 
    "rpc-whitelist": "127.0.0.1", 
    "rpc-whitelist-enabled": false, 
    "scrape-paused-torrents-enabled": true, 
    "script-torrent-done-enabled": false, 
    "script-torrent-done-filename": "", 
    "seed-queue-enabled": false, 
    "seed-queue-size": 10, 
    "speed-limit-down": 100, 
    "speed-limit-down-enabled": false, 
    "speed-limit-up": 100, 
    "speed-limit-up-enabled": false, 
    "start-added-torrents": true, 
    "trash-original-torrent-files": false, 
    "umask": 18, 
    "upload-limit": 100, 
    "upload-limit-enabled": 0, 
    "upload-slots-per-torrent": 14, 
    "utp-enabled": true, 
    "watch-dir": "/downloads", 
    "watch-dir-enabled": true
}

 

edit rpc-username line with "your username"

edit rpc-password line with "your password"

save file, and start transmission container - first time you start container after changing password - it will encrypt it.

 

If everything is setup correctly - your should be able to access the transmission web gui via tower:9091 or ipaddress:9091 and login.

 

Thank you for the clarification. It now makes much more sense. :)

 

So, I've managed to get transmission up and running, but when I try and grab a test torrent it gets part way through and then I get an error: "Error: Unable to save resume file: No such file or directory"

 

I edited the XML file to reflect my paths ( /mnt/cache/appdata/Downloads/:/downloads) and under that I have a torrents folder. In the Transmission config I have /torrents listed as the "download to" folder. However... when I start downloading I don't see anything in the torrents folder which makes me believe I still have something misconfigured.

 

On another note... for some reason in IE 11/Win 8.1 when I load the XML file I don't see any of the fields populate when I add the my-Transmission template. I switched over to Chrome and it all fills in just fine. I checked other templates and get the same result, so it's obviously an issue with IE, not with the specific XML.

 

I have no idea why IE is not picking this up correctly, but thought it was worth mentioning.

 

Link to comment

Nope, New Permissions set directories to 770 and files to 660.

That is not what I have experienced.  And from the comments of newperms script:

# Here's a breakdown of chmod "u-x,go-rwx,go+u,ugo+X"
#  u-x     Clear the 'x' bit in the user permissions (leaves rw as-is)
#  go-rwx  Clear the 'rwx' bits in both the group and other permissions
#  go+u    Copy the user permissions to group and other
#  ugo+X   Set the 'x' bit for directories in user, group, and other

 

The umask should be 007 and 006, respectively.

There is only one setting for umask and it applies to both directories and files.  007 should work fine. I think for most use cases in unRAID, the "other" permissions don't matter too much.  I have mine set to 002.  It may cause a problem if you have an add-on that runs as a user which is not a member of the users group.  It that case, a umask of 000 would be best.

Link to comment

...I edited the XML file to reflect my paths ( /mnt/cache/appdata/Downloads/:/downloads) and under that I have a torrents folder. In the Transmission config I have /torrents listed as the "download to" folder. However... when I start downloading I don't see anything in the torrents folder which makes me believe I still have something misconfigured.

...

If you have /mnt/cache/appdata/Downloads/torrents then in Transmission you should have /downloads/torrents
Link to comment

Nope, New Permissions set directories to 770 and files to 660.

That is not what I have experienced.  And from the comments of newperms script:

# Here's a breakdown of chmod "u-x,go-rwx,go+u,ugo+X"
#  u-x     Clear the 'x' bit in the user permissions (leaves rw as-is)
#  go-rwx  Clear the 'rwx' bits in both the group and other permissions
#  go+u    Copy the user permissions to group and other
#  ugo+X   Set the 'x' bit for directories in user, group, and other

 

The umask should be 007 and 006, respectively.

There is only one setting for umask and it applies to both directories and files.  007 should work fine. I think for most use cases in unRAID, the "other" permissions don't matter too much.  I have mine set to 002.  It may cause a problem if you have an add-on that runs as a user which is not a member of the users group.  It that case, a umask of 000 would be best.

 

Let's assume the initial mode is 777.

 

#  u-x    Clear the 'x' bit in the user permissions (leaves rw as-is)

Now the octal permission is 670

#  go-rwx  Clear the 'rwx' bits in both the group and other permissions

Now the octal is 600

#  go+u    Copy the user permissions to group and other

Now, 666.

# ugo+X  Set the 'x' bit for directories in user, group, and other

Directories to 777

 

You are right, living and learning!

Link to comment

gfjardim and Freddie, your discussion has went over my head a little.

 

In saying that I took the advice of Freddie and set the umask in NZBGet to 007. Restarted the software and downloaded a file, it all worked! I was able to rename, delete etc. :)

Very happy, thanks guys!

Link to comment

NZBDrone had an update a few days ago:  2.0.0.1690 - July 23 2014

needo/nzbdrone was last built on the 23rd:  bsdjewnvrhcijwdgbqcgqca Finished 2014-07-23 23:17:35 2014-07-23 23:25:11

but doesn't appear to have this update.

 

am I not updating the image correctly by doing a docker pull needo/nzbdrone then stoping and starting the image?  (docker stop nzbdrone, docker start nzbdrone)

Link to comment

With a fresh install of the newest beta I'm unable to access the web gui for plex. Any suggestions? This is my first time installing a docker. I tried a different plex docker and it worked but this one does not?

 

What does your docker run command look like?

Link to comment

NZBDrone had an update a few days ago:  2.0.0.1690 - July 23 2014

needo/nzbdrone was last built on the 23rd:  bsdjewnvrhcijwdgbqcgqca Finished 2014-07-23 23:17:35 2014-07-23 23:25:11

but doesn't appear to have this update.

 

am I not updating the image correctly by doing a docker pull needo/nzbdrone then stoping and starting the image?  (docker stop nzbdrone, docker start nzbdrone)

 

Yes, you need to redownload the image so you would need to run...

 

docker stop nzbdrone
docker rm nzbdrone
docker rmi needo/nzbdrone
And then your docker run command

 

This is made a lot easier by using the docker plugin available in this forum.

Link to comment

@needo :

 

I tried your MariaDB docker.  It start and probably work.  But, what is the default DB, User and Pass ?  I'm trying to use the MariaDB on a Cache SSD drive (for the DB) to work as the backend of Owncloud Docker.  Currently, the owncloud connect to Sqlite DB.  MariaDB should make it faster :)

 

How can I create a new DB for owncloud ?  Is there any admin tools to do that? or command Line ?  Any help appreciate!

 

Thanks!

Link to comment

@needo :

 

I tried your MariaDB docker.  It start and probably work.  But, what is the default DB, User and Pass ?  I'm trying to use the MariaDB on a Cache SSD drive (for the DB) to work as the backend of Owncloud Docker.  Currently, the owncloud connect to Sqlite DB.  MariaDB should make it faster :)

 

How can I create a new DB for owncloud ?  Is there any admin tools to do that? or command Line ?  Any help appreciate!

 

Thanks!

 

The default username is root and there is no password. I know some people using mariadb for a variety of tasks. I am going to have to defer to them for this specific use case.

Link to comment

Tried for hours to get your Plex docker working, please share the exact command to install it because everyone my friend and I have tried do not work properly.  No ports...

 

docker run -d --net="host" --name="plex" -v /path/to/plex/config:/config -v /path/to/video/files:/data -v /etc/localtime:/etc/localtime:ro -p 32400:32400 needo/plex

 

Then from your PC go to...

 

http://server:32400/web/index.html#!/dashboard

 

Replace server with the name or IP address of your unRAID machine.

Link to comment

With a fresh install of the newest beta I'm unable to access the web gui for plex. Any suggestions? This is my first time installing a docker. I tried a different plex docker and it worked but this one does not?

 

What does your docker run command look like?

 

docker run -d --net="host" --name="plex" -v /mnt/cache/appdata/plexdocker/config:/config -v /mnt/user/Media:/data -v /etc/localtime:/etc/localtime:ro -p 32400:32400 needo/plex

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.