tips
52 tips Apps and containers
One command, setting or habit at a time about Apps and containers: what it does, the line to copy and a caveat or two.
Apps and containers 52
-
Prints a small table with total, active and disabled accounts, split by user backend.
sudo -E -u www-data php occ user:report -
Array settings in config.php are set with an index. Without it you overwrite the wrong thing.
sudo -E -u www-data php occ config:system:get trusted_domains -
A dry run for app updates: see what is available before you update one app or all of them.
sudo -E -u www-data php occ app:update --showonly -
Filters the history of background jobs by status, so crashed and failed jobs stand out.
sudo -E -u www-data php occ background-job:history -s 3 -l 10 -
Skips the CLI's local hashing before upload. Immich still deduplicates on the server.
immich upload --skip-hash --recursive directory/ -
Stops changes to files and data while you copy or repair things.
docker exec --user www-data nextcloud php occ maintenance:mode --on -
Gets a locked out user back in without any email setup.
docker exec -it --user www-data nextcloud php occ user:resetpassword layla -
Shows new log entries while you reproduce a problem.
docker exec -it --user www-data nextcloud php occ log:watch -
Moves files to another account before you remove a user.
docker exec --user www-data nextcloud php occ files:transfer-ownership layla fred -
Switches off one two factor method so a locked out user can log in.
docker exec --user www-data nextcloud php occ twofactorauth:state layla -
Prints the setup warnings without opening the web admin page.
docker exec --user www-data nextcloud php occ setupchecks -
Turns password sign in back on from the server when single sign on fails.
docker exec -it immich_server immich-admin enable-password-login -
Takes Immich out of normal service from the terminal before a restore.
docker exec -it immich_server immich-admin enable-maintenance-mode -
Keeps your folder structure as albums when importing an old photo collection.
immich upload --album --recursive ~/Pictures/archive -
Leaves unwanted subfolders and file types out of a bulk upload.
immich upload --ignore "**/Raw/**" --recursive ~/Pictures/2025 -
Fixes requests being blocked when Home Assistant sits behind a proxy.
Trust X-Forwarded-For: on -
Slows down password guessing, and shows how to unban yourself.
Unlimited login attempts: off -
Lets you inspect older runs of an automation that fires often.
automation: -
Stops one unreachable device from cancelling the rest of a routine.
sequence: -
Shows a sensor as unavailable instead of a wrong number when its source is gone.
template: -
Tries an automation without one action while keeping that action in place.
enabled: false -
Lists every running container together with its privileged flag.
docker ps -q | xargs docker inspect -f '{{.Name}} privileged={{.HostConfig.Privileged}}' -
Chooses what a Home Assistant automation does when it triggers again while still running.
mode: queued -
Lowers the Home Assistant log level for everything and raises it for one integration.
logger: -
Puts the sensor, helper and automation for one feature in a single YAML package file.
packages: !include_dir_named packages -
Merges all YAML list files in a folder into one automation list.
automation: !include_dir_merge_list automation/ -
Creates a partial backup first, then updates Home Assistant Core, from the ha command line.
ha core update --backup -
Turns on debug logs for one integration from the interface and downloads them when you turn it off.
Settings > Devices & services > (integration) > Menu > Enable debug logging -
Cap a container's memory with the new field in the advanced view of Unraid 7.4.
grep -i "Memory cgroup out of memory" /var/log/syslog -
Shows or sets how large the Nextcloud trash bin may be, globally or per user.
sudo -E -u www-data php occ trashbin:size -
Lists the biggest items in a Nextcloud folder with their sizes.
sudo -E -u www-data php occ info:file:space /layla/files/Videos -
Deletes the stored file versions of a user, limited to one folder with --path.
sudo -E -u www-data php occ versions:cleanup \ -
Lists what the Immich command line tool would upload, without uploading anything.
immich login http://192.168.1.x:2283/api <api-key> -
Resets the Immich admin password from inside the server container.
docker exec -it immich_server immich-admin reset-admin-password -
Explains the Healthy, Unhealthy and No health check labels in Unraid's Docker tab.
-
Makes an Unraid container create its files as nobody:users, the owner your shares expect.
id nobody -
Keeps fewer days of history and skips noisy entities so the Home Assistant database stays small.
recorder: -
Makes Nextcloud run its heavy daily background jobs during a night window you choose.
docker exec -it --user www-data nextcloud php occ config:system:set maintenance_window_start --type=integer --value=1 -
Adds the database indices Nextcloud expects after an upgrade, so the admin warning disappears.
docker exec -it --user www-data nextcloud php occ db:add-missing-indices -
Validates the YAML configuration before a restart, so one typo does not take Home Assistant down.
ha core check -
Moves passwords and keys from configuration.yaml into a separate secrets.yaml file.
password: !secret rest_password -
Spot deprecated, incompatible or blacklisted apps on your server, not just updates.
-
Solve a port clash between containers by changing only the host side of the mapping.
Container port: 8000 Host port: 8000 -
Make a container see a disk outside the array by picking a Slave access mode.
-
Try a Home Assistant template and see its result before you use it in an automation.
-
Stops Sonarr and Radarr from downloading again a file you deleted on purpose.
-
Defines a settings block once and reuses it in several services of one compose file.
x-common: &common -
Summarizes a long Claude Code conversation while keeping the parts you name.
/compact keep the failing test names and the decision to use SQLite -
Explains how the Series Type changes the way Sonarr searches and why a wrong type finds nothing.
Series > Edit > Series Type: Standard | Daily | Anime -
Lets Portainer manage a remote Docker host that cannot accept incoming connections.
-
Keeps downloaded packages between builds so a changed dependency list does not redownload everything.
RUN --mount=type=cache,target=/root/.cache/pip \ -
Keeps a lasting copy of the Unraid system log on a share instead of on the boot drive.
Remote syslog server: the IP address of this server
Nothing in this filter yet.