Squid Posted April 14, 2018 Share Posted April 14, 2018 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) Quote Link to comment
karldonteljames Posted November 2, 2018 Share Posted November 2, 2018 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? Quote Link to comment
karldonteljames Posted November 2, 2018 Share Posted November 2, 2018 6 minutes ago, karldonteljames said: Sorry, but how do I do this part? DW. Just being Stupid apparently. Quote Link to comment
Corodeanu N Posted April 26, 2019 Share Posted April 26, 2019 hi I need help with the csgo docker to get it to work any tips Quote Link to comment
Squid Posted April 26, 2019 Share Posted April 26, 2019 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 Quote Link to comment
Froberg Posted June 25, 2019 Share Posted June 25, 2019 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? Or am I missing something? Wouldn't be the first time. Quote Link to comment
Squid Posted June 25, 2019 Share Posted June 25, 2019 So, ah, like this? 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 itSent from my NSA monitored device 1 Quote Link to comment
Froberg Posted June 25, 2019 Share Posted June 25, 2019 I was today years old when I found out the docker page had an advanced view switch. Cheers mate. Quote Link to comment
TODDLT Posted August 17, 2019 Share Posted August 17, 2019 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 1 Quote Link to comment
Heciruam Posted September 29, 2019 Share Posted September 29, 2019 (edited) 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 September 29, 2019 by Heciruam Quote Link to comment
Squid Posted September 29, 2019 Share Posted September 29, 2019 Within apps go to settings and enable reinstall defaults Sent from my NSA monitored device 1 Quote Link to comment
eagle470 Posted October 9, 2019 Share Posted October 9, 2019 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? Quote Link to comment
Squid Posted October 9, 2019 Share Posted October 9, 2019 Just now, eagle470 said: extra parameters (Advanced View) Quote Link to comment
CyberMew Posted December 24, 2019 Share Posted December 24, 2019 On 5/26/2017 at 11:15 PM, Squid said: My docker.img file is filling up due to excessive logging from various apps Some applications will log almost everything that they do. In cases of your docker.img file filling up due to excessive logging, you should look at the application's settings within its GUI and try to limit the logging that it performs. Additionally, you can limit any docker's logging to a set size by adding the following to the Extra Parameters when you edit the application template (Switch to advanced view via the button in the top right corner) --log-opt max-size=50m --log-opt max-file=1 This will limit the log size to a very reasonable 50 Meg EDIT: DO NOT USE THE LOG ROTATION OPTION IN UNRAID LISTED BELOW. IT IS NOT OBVIOUS THE STEPS REQUIRED TO MAKE IT WORK PROPERLY For the log rotation settings to take effect, you MUST remove and reinstall your containers (or delete the docker image). It is advised to instead use the extra parameters section instead * Under unRaid 6.7.0+, the logging options now insert the appropriate entries into the entra parameters, but you still basically have to remove and then re-add the container EDIT: As of unRaid 6.4.0-rc7 you can set this globally for all applications by: Settings - Docker Stop the service Switch to advanced view Enable the logging rotation option accordingly Restart the service Works great for me on 6.6.7 unraid, fixed my sonar and ombi and transmission spamming gigabytes of logs. Quote Link to comment
NichollsGlen Posted July 10, 2023 Share Posted July 10, 2023 On 5/26/2017 at 8:56 AM, Squid said: How do I move or recreate docker.img? The easy way to move or recreate docker.img - 1 Go to Settings -> Docker -> Enable Docker, and set to No, then click the Apply button (this disables Docker support) 2 If recreating your docker.img file, then switch to Advanced View, then check off the box and press Delete, then skip to step 5 3 Using mc or any file manager or the command line, move docker.img to the desired location (/mnt/cache/docker.img is recommended) 4 In Settings -> Docker, change the path for Docker image to the exact location you just copied to 5 Now set Enable Docker back to Yes, and click the Apply button again (re-enabling Docker support) NOTE: If you have created any custom docker networks (eg through docker network create) you will need to recreate them after recreating your image and before reinstalling your applications The standard way to move or recreate docker.img is to stop Docker support, delete the current image, re-enable Docker support The easiest way to reinstall your applications would be to go to the Apps Tab, Previous Apps Section. Then check off all of your previous applications and hit "Install" Regarding your point about re-installing from the templates in Previous Apps, what do you do if the previous apps doesn't have all the docker containers? For reference, I checked previous apps before attempting to shrink my docker image and noticed that it does not contain any of my current templates for the 20+ containers I have in the Docker tab. Quote Link to comment
KluthR Posted July 10, 2023 Share Posted July 10, 2023 I never used Previous Apps before. I always (if needed) restore my xml templates and (mainly): Add Container -> Choose template -> Save. Done Quote Link to comment
trurl Posted July 10, 2023 Share Posted July 10, 2023 1 hour ago, KluthR said: I never used Previous Apps before. I always (if needed) restore my xml templates and (mainly): Add Container -> Choose template -> Save. Done Previous Apps is much easier than that, and you can do multiple dockers. Just select them, no need to even know about the templates that allow them to be selected. Quote Link to comment
trurl Posted July 10, 2023 Share Posted July 10, 2023 2 hours ago, NichollsGlen said: what do you do if the previous apps doesn't have all the docker containers? Your docker templates are on your flash drive in config/plugins/dockerMan/templates-user (assuming you haven't wiped them in some way). Quote Link to comment
trurl Posted July 10, 2023 Share Posted July 10, 2023 2 hours ago, NichollsGlen said: what do you do if the previous apps doesn't have all the docker containers? It's also possible to "install" containers from the command line, and so no template would be created since the templates come from the webUI Add/Edit Container page. There are many ways the webUI can't manage a container created at the command line since there is no template for it to work with. Quote Link to comment
NichollsGlen Posted July 11, 2023 Share Posted July 11, 2023 (edited) 5 hours ago, trurl said: Your docker templates are on your flash drive in config/plugins/dockerMan/templates-user (assuming you haven't wiped them in some way). Okay perfect, I see those now. Thanks for the tip! 5 hours ago, trurl said: It's also possible to "install" containers from the command line, and so no template would be created since the templates come from the webUI Add/Edit Container page. There are many ways the webUI can't manage a container created at the command line since there is no template for it to work with. Hmmm, so I still don't see most of the templates in Previous Apps that I installed through CA. I see all of my templates (phew) in /boot/config/plugins/dockerMan/templates-user/ , but only a couple of them show up in Apps > Previous Apps... All of them are in Installed Apps but it'd be nice to see them in Previous Apps so I can set all of them up at the same time. Is there a way to import the XML in the Previous Apps or something so they show up there? Edited July 11, 2023 by NichollsGlen clarity Quote Link to comment
NichollsGlen Posted July 30, 2023 Share Posted July 30, 2023 @trurl or anyone else know how to get all my templates in /boot/config/plugins/dockerMan/templates-user/ to show up in Previous Apps? Quote Link to comment
trurl Posted July 30, 2023 Share Posted July 30, 2023 14 minutes ago, NichollsGlen said: @trurl or anyone else know how to get all my templates in /boot/config/plugins/dockerMan/templates-user/ to show up in Previous Apps? As far as I know, they should all show up. Maybe there is something wrong with them? Quote Link to comment
NichollsGlen Posted July 31, 2023 Share Posted July 31, 2023 1 hour ago, trurl said: As far as I know, they should all show up. Maybe there is something wrong with them? Interesting... I installed all my containers through CA and haven't noticed any issues other than them not showing up there while trying to re-install to reduce the size of my docker image. Quote Link to comment
grtgbln Posted March 15 Share Posted March 15 (edited) Is there a way to mitigate breaking changes and/or major versions in a CA template? One app I manage a template for has a new major (x.y.z) version out, which requires changes to both the Docker/CA settings (some new config fields, some removed, some changed type from a string to a dropdown option) and to non-Docker settings (permission changes to the remote API the app interacts with via the provider's portal). 1. Is there a process that I can take to properly migrate user settings from the old "string" type to the new "dropdown" type? If not, is there a way to call this out to the user or force them to view the app's configuration page during an update? 2. In the same vain, is there a way to stop users from auto-updating to a new major version, or bring attention to it? It doesn't seem like there's necessarily versioning for CA templates. The container currently uses `Branch` for which Docker image to use, but with `latest` being the only option. Perhaps changing the only available branch to a specific older image? Edited March 15 by grtgbln Quote Link to comment
Recommended Posts
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.