- Annoyance
I've been trying [unsuccessfully] to change the icon for a couple different containers. However I tried to change them [modifying the URL in the template, removing & reinstalling the template, removing images from the emhttp directory, ...], it always downloaded the original icon.
After poking around in /usr/local/emhttp/plugins/dynamix.docker.manager, I figured out that it was downloading the icon from the original docker template and not the icon from the user template; which meant it would never pick up a different icon. The error comes from the getIcon() method:
public function getIcon($Repository,$contName,$tmpIconUrl='') { global $docroot, $dockerManPaths; $imgUrl = $this->getTemplateValue($Repository, 'Icon','all',$contName); ^^^
'all' here loads all of the templates [both original and user] and, depending upon their sort order, the original template might override the user template. Which, in my case, it is.
I was able to get this to work as I wanted by using 'user' instead of 'all'. But, it's unclear if that's the correct solution.