July 24Jul 24 I have containers running with the label net.unraid.docker.icon: "/location/on/my/disks"Before Unraid update 7.3.2 the icons were displayed and we lived in a happy world.Now, my custom icons are ignored and they all have the question.png default one.Am I missing a breaking change or is it a regression ? Maybe a feature ?To be 100% transparent, I'm using FolderView3, maybe it does something in the process, not sure. Edited July 24Jul 24 by zaggash
July 24Jul 24 Community Expert Solution You are supposed to use a URL, not a local path, but see the release thread, there are some workarounds posted there
July 25Jul 25 I am not having any luck with local, file://, or https:// urls with 7.3.2.I use homepage as my home dashboard and the same URLs that work for homepage do not work when I use them for the unraid label. when I inspect the dashboard page on unraid, it looks like it is not even attempting to load the icon I specified by the label. it has the src and onerror both set to question.png.Update:Ok, it looks like a reboot of unraid fixed it. Edited July 25Jul 25 by korey_sed
August 3Aug 3 Author Unfortunalty it didn't work.I tried both file:/// and https:// on GitHub image icon link, none is working.Tried on both Brave and Edge. Normal and private navigation.
August 18Aug 18 The following worked for me:(1) All local paths need "file://" at the beginning, e.g., "file:///mnt/user/xxx.png". Note the three slashes.(2) Delete all files from "/var/lib/docker/unraid/images/" and "/var/local/emhttp/plugins/dynamix.docker.manager/images/"(3) Delete the file "/var/local/emhttp/plugins/dynamix.docker.manager/docker.json"(4) Reload the Docker UI page. After that, all the icons were back.
October 6Oct 6 I ran into this with a new custom Docker container and was able to fix it without deleting all Docker icon caches or docker.json.In my case, Unraid had two cached copies of the container icon:/var/lib/docker/unraid/images/CONTAINER-NAME-icon.png /var/local/emhttp/plugins/dynamix.docker.manager/images/CONTAINER-NAME-icon.pngThe first copy had been updated correctly, but the second was still the old/bad cached file. The Docker UI was actually serving the second copy.You can confirm which file the UI is referencing with:grep -i -C 3 'CONTAINER-NAME' \ /var/local/emhttp/plugins/dynamix.docker.manager/docker.jsonMine showed:"icon": "/state/plugins/dynamix.docker.manager/images/CONTAINER-NAME-icon.png"I then compared the two cached files:ls -lh /var/lib/docker/unraid/images/CONTAINER-NAME-icon.png ls -lh /var/local/emhttp/plugins/dynamix.docker.manager/images/CONTAINER-NAME-icon.png file /var/lib/docker/unraid/images/CONTAINER-NAME-icon.png file /var/local/emhttp/plugins/dynamix.docker.manager/images/CONTAINER-NAME-icon.pngIn my case, the /var/local/... copy was stale even though the /var/lib/... copy was a valid PNG.Rather than clearing every container's icons, I fixed only the affected container:rm /var/local/emhttp/plugins/dynamix.docker.manager/images/CONTAINER-NAME-icon.png cp /var/lib/docker/unraid/images/CONTAINER-NAME-icon.png \ /var/local/emhttp/plugins/dynamix.docker.manager/images/CONTAINER-NAME-icon.pngAfter refreshing the Docker page, the icon immediately appeared.If the /var/lib/... copy is also wrong, download/copy the desired PNG there first, then copy that file to /var/local/....So before using the more aggressive workaround of clearing all icons and removing docker.json, I'd recommend checking these two cache locations first. You may be able to repair just the affected container and leave every other Docker icon/cache entry alone.This also seems useful diagnostically: if changing the Icon URL in the template doesn't change what you see in the UI, check the /var/local/emhttp/plugins/dynamix.docker.manager/images/ copy. In my case, that was the piece that wasn't being refreshed.
19 hours ago19 hr In Compose Manager → Edit Stack → UI Labels, set each Icon field to a file:// path (three slashes):file:///mnt/user/<share>/<icons-folder>/<icon>.pngSave, then run Compose Up (or Update Stack).Clear both icon caches:find /var/lib/docker/unraid/images/ /var/local/emhttp/plugins/dynamix.docker.manager/images/ -type f -deleteDelete Unraid’s icon index:rm -f /var/local/emhttp/plugins/dynamix.docker.manager/docker.jsonHard-refresh the Docker page (Ctrl+F5).
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.