Jump to content
sparklyballs

Docker FAQ feedback

88 posts in this topic Last Reply

Recommended Posts

7 hours ago, tmchow said:

I have several containers running that I want to execute with “--restart unless-stopped” option. How do I do this? When I go to edit a docker container I don’t see a place to add custom command line options. 

Extra Parameters (Advanced View)

Share this post


Link to post
On 5/26/2017 at 5:25 PM, Squid said:

Then, on the application's template, add an appropriate volume mapping to that Unassigned Devices mount point.  Don't forget to set the Access Mode to be either RW:slave or Read Only:slave depending upon what you need.

Sorry, but how do I do this part?

Share this post


Link to post
14 minutes ago, Corodeanu N said:

any tips

Best place to start would be to post and ask a specific question in it's support thread

Share this post


Link to post
On 6/2/2017 at 4:46 PM, Squid said:

How do I limit the memory usage of a docker application?

To limit the memory usage of a particular app, add this to the extra parameters section of the app when you edit / add it:


--memory=4G

This will limit the memory of the application to a maximum of 4G

 

So, ah, like this?

image.png.b8ba0a713bbcb748a86a2de4519b751f.png

 

Or am I missing something? Wouldn't be the first time.

Share this post


Link to post
So, ah, like this?
image.png.b8ba0a713bbcb748a86a2de4519b751f.png
 
Or am I missing something? Wouldn't be the first time.
Not a variable, but in the extra parameters section. May need to switch to advanced view to see it

Sent from my NSA monitored device

Share this post


Link to post

I was today years old when I found out the docker page had an advanced view switch. Cheers mate.

Share this post


Link to post

I recently went through some difficulty with my Plex docker and permission rights for files.  It took a week of back and forth on two sections of the forums before I had the answer.  In the end it was a simple fix but it seems like very few know its there or can be an issue.  I would assume this could potentially affect or be useful in other dockers as well.

 

--Issue--  

I use the Plex DVR with the Linuxserver.IO Plex docker.  The video files being created by the Plex DVR were being created with limited access rights for anyone but the user "nobody" the owner of the file.  I could not move, rename, delete any files without first running the "new permissions" utility on unRaid.

 

--Cause--

linux has a UMASK default of 022, but this is not compatible with the unraid system.  This limits user access to the user/group that created the folder and/or file, in this case "nobody."   UMASK of 0000 will mean that all files / folders will be r/w access for all users with the appropriate permissions in unRAID.

 

--Fix--

The Plexserver.IO docker has a variable for UMASK that isn't in the default list when first installed.  You can add in the docker settings UMASK_SET, and you then assign 0000 there.  This resolved the access rights issues to the DVR created files.

 

If this is helpful to others, certainly can be added to any FAQ

 

Share this post


Link to post

So I've been trying to install a second Docker instance the way you described it in the FAQ:

On 8/20/2017 at 2:38 AM, Squid said:

How do I install a second instance of an applications?

 

There may be some use cases where you may wish to run a given application twice, with separate appdata settings, ports, etc.

 

Assuming that the container runs as network type: Bridge,

 

  • On the Apps Tab (you do have Community Applications installed don't you?),
  • Go to the Installed Apps section,
  • Reinstall using default values the application you want to run another instance for
  • Change the name of the application, along with assigning it different ports, paths (you may need to show advanced settings to see the appdata (/config) path)
  • Hit Apply

 

If the application runs as network type: Host, you will do all the same as above, but you will need to switch network type to be Bridge, and add in all of the applicable ports and reassign them as needed.  (ie: check with the support thread and/or the project URL to determine which ports need to be defined

 

 

Alternatively, (under either Bridge or Host network types), if you are running unRaid 6.4+, then you can also assign the new instance a different IP address and keep the ports the same (bridge mode), or not define them at all (host mode).  But you will still have change the name of the application and set the appdata (/config folder) accordingly

 

The thing is if I go to the already installed container, there is no "reinstall using default values". I can only "edit". When I edit, even though I changed name, ports, config location, and so on it just deletes the already installed docker files and installs them at the newly specified location.
What am I doing wrong?

Edited by Heciruam

Share this post


Link to post

Within apps go to settings and enable reinstall defaults

Sent from my NSA monitored device

Share this post


Link to post
On 6/2/2017 at 9:45 AM, Squid said:

To do something like this, you would add to the extra parameters section of folding@home the following:

 

--cpu-shares=2

Where do I do this at?

Share this post


Link to post
Just now, eagle470 said:

extra parameters

(Advanced View)

Share this post


Link to post

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.