July 25, 20242 yr Hi! I understand that the current startup order priority is based on the docker location in the Docker tab, however, it might be a better idea to have a simple input that allows for a number to set said Dockers startup location? I currently have a the FolderView plugin and opting to set my Docker containers to startup in the correct order is not possible. If, instead, I had an input for each Docker container, I could number these how I feel necessary. E.g. I run Immich for photos that is in a folder with Plex and other media servers. For Immich I also have a database Docker container, for Postgres. My number for POSTGRES would be "1", therefore meaning it would take priority as the first Docker container to startup. From there I would assign IMMICH with a number of "2", meaning it would then follow as next. Any numbers NOT stated could then be set to prioritise from top-to-bottom. Please note that this does not simply benefit people using the FolderView plugin such as myself, however it would benefit people who would like to simply place more commonly used Docker containers at the top of their Docker tab without losing the ability to set a startup for after other Docker containers.
February 27Feb 27 yes, it's a great idea. I also want to separate view in folderview2 from boot order. your request looks as simple as possible Edited February 27Feb 27 by arkadi22
November 11Nov 11 Related work, in case it helps someone landing here. It doesn't add the number field yet, but it fixes the other half of the problem.How it works today: containers start in the order of the Docker tab. That order is saved in /boot/config/plugins/dockerMan/userprefs.cfg when you drag containers around, and Unraid sorts the autostart list by it. In Advanced View the Docker tab also has a wait field next to Autostart: the number of seconds Unraid waits after starting that container before it starts the next one. That's handy for a database that needs a moment before the app connects (for example Postgres before Immich).Stopping is the weak spot. When Docker stops or the server shuts down, the containers are not stopped in the reverse of that order, so the app can lose its database before it has shut down cleanly. There are two open pull requests for this:- Unraid webgui: https://github.com/unraid/webgui/pull/2818 makes the Docker service and shutdown stop containers in the reverse of the Docker tab order.- Appdata Backup: https://github.com/Commifreak/unraid-appdata.backup/pull/95 makes the backup start containers in the Docker tab order by default and stop them in exact reverse. Its own order list stays available as a "Custom" choice.With both, there is one order (the Docker tab), and stopping is always its reverse.For the Immich case specifically, the simplest fix today is to drag Postgres above Immich on the Docker tab, or, with FolderView, to keep the database in the same folder and above the app, or in a folder that sits higher up. Databases are needed first, so having them near the top also reads well.One thing worth separating: plain Docker containers have no idea of each other. Docker itself keeps no start order or dependency between them, so for template containers the only order is the one Unraid keeps, the Docker tab. Dependencies are a Docker Compose feature (depends_on, optionally with condition: service_healthy). For a multi-container app like Immich, running it as a Compose stack (for example with the Compose Manager plugin) lets Compose start Postgres first and wait until it is ready, whatever the Docker tab order. Inside the stack, the Docker tab order then no longer decides anything.So the Docker tab is not just a view: its order is the start order, and with the PRs above, the reverse is the stop order. Arranging it purely for looks can quietly put an app before its database, and you only find out at the next reboot. I'd arrange it by dependency, databases and other backends first, and use folders that follow that order.
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.