Can't change Docker container icon


Strayer

17 posts in this topic Last Reply

Recommended Posts

After setting the icon URL once, unraid never seems to download it again after changing it. I added an icon with wrong dimensions. After fixing the icon and uploading it to a new URL, everytime I update the container to the new icon URL or remove and recreate it, it loads the old icon again.

 

It seems like the icon is cached somewhere, but I wasn't able to find it.

 

Any ideas where to start to fix this?

Link to post

Correct.  After the image is downloaded, Unraid serves the icon from it's locally stored copy (within the docker.img).  

 

Your workaround is to simply change the URL to anything else.  Apply it.  (Can't remember OTOH if you have to go to the docker / dashboard tab to attempt a new download).  Then change the URL back and it'll re-download the image with the adjusted dimensions

Link to post
1 minute ago, Squid said:

Correct.  After the image is downloaded, Unraid serves the icon from it's locally stored copy (within the docker.img).  

 

Your workaround is to simply change the URL to anything else.  Apply it.  (Can't remember OTOH if you have to go to the docker / dashboard tab to attempt a new download).  Then change the URL back and it'll re-download the image with the adjusted dimensions

That is what I assumed, but the new image is under a completely different URL, unraid still doesn't download it again. I even tried setting it to the icon URL of one of the other containers, still no avail.

Link to post
9 minutes ago, Squid said:

What unRaid version?

Sorry, should have mentioned that. I'm on 6.8.3.

 

8 minutes ago, Squid said:

Oh and maybe clear your browser cache.  I seem to recall that on 6.9 I put in some code changes to handle browser caching in this circumstance

Tried clearing the cache and also tried it with dev tools (and disable cache option), doesn't seem to make a difference.

 

I just tried it with a new container and it happens again.

 

Initial container configuration:

grafik.thumb.png.88b306907b9c00d22335f23fdaf213e6.png

 

Initial icon URL: https://i.imgur.com/KDZALBF.png

Updated icon URL: https://i.imgur.com/ajVjfzk.png

 

When trying to change the icon URL to the updated URL, the icon still stays the same.

Edited by Strayer
Link to post

Do you already have another container using the same repository (debian?).  If so, then under 6.8 the icons will always be identical between the two.  6.9 supports different icons for multiple containers using the same repository.

Link to post
15 hours ago, Squid said:

Do you already have another container using the same repository (debian?).  If so, then under 6.8 the icons will always be identical between the two.  6.9 supports different icons for multiple containers using the same repository.

No, this was just a testing container. The actual container I have the issue with is the only mongo:4.0 container (even the only mongo container at all) on the system.

 

Since it is not really an important issue, I will probably wait for 6.9 to check this again. Thanks for the help so far!

Link to post
  • 4 weeks later...

Bump.

 

I'm having the same problem. Changed the URL to a totally different one, but the new one never gets downloaded. Cleared cache and tried on different browsers, so I don't think it's a browser issue. Not using the repo in any other containers, either. Running 6.8.3.

 

EDIT: I even completely deleted and re-added the container.

 

Thanks!

Edited by micahmo
Link to post
  • 1 month later...

Its also still broken for me and makes me crazy. Everytime I login, I see that broken icon 😡 😉

 

I fixed this manually for now by replacing the PNG in /var/lib/docker/unraid/images/ with the correct one and removing the cached PNG from /var/local/emhttp/plugins/dynamix.docker.manager/images.

Link to post
1 hour ago, Strayer said:

Still on 6.8.3, yes. I'm looking forward to a few changes in 6.9, but I still prefer to wait for a stable release.

As far as I can tell, it works perfectly on 6.9 (otherwise I'm the one who's going to wind up getting spanked by LT - there were other changes in the icon system for it), so just hold tight.

Link to post
  • 3 months later...

Just in case someone comes along this thread like I did today ;)...

 

I'm on 6.9 and ran into a similar issue when trying to replace an image by changing the path in the xml template.

Deleting container, Path changing, reloading, nothing helped. 

I ended up deleting the image at "/var/lib/docker/unraid/images/".

When then building a new container from the template the image was pulled again and the new image appears!

 

Regards,

André

Link to post
2 hours ago, andre (buanet) said:

Just in case someone comes along this thread like I did today ;)...

 

I'm on 6.9 and ran into a similar issue when trying to replace an image by changing the path in the xml template.

Deleting container, Path changing, reloading, nothing helped. 

I ended up deleting the image at "/var/lib/docker/unraid/images/".

When then building a new container from the template the image was pulled again and the new image appears!

 

Regards,

André

So can you change it now?

Link to post
  • 2 months later...

On 6.9.2, experiencing the same issue. Need to "force update" the container for the changes to take effect. It is weird though, this does not seem to apply to all containers - about two weeks ago, I successfully changed the icon of my first and only dockerhub container.

And yes, I tried different browser, incognito mode, etc - so no browser caching issue.

 

Thanks for all the good work so far, I really like unraid!

Link to post
Posted (edited)
On 6/1/2021 at 1:17 AM, coldtech said:

On 6.9.2, experiencing the same issue. Need to "force update" the container for the changes to take effect. It is weird though, this does not seem to apply to all containers - about two weeks ago, I successfully changed the icon of my first and only dockerhub container.

And yes, I tried different browser, incognito mode, etc - so no browser caching issue.

 

Thanks for all the good work so far, I really like unraid!

Just had the same problem after updating 4 containers this morning.


What ended up working for me was to delete the generic 1k icons from /var/lib/docker/unraid/images then do "force update".
 

Thanks for everyone's help. Those questions mark icons were driving me crazy!

 

EDIT: I am also on 6.9.2

Edited by Pacman56
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.