I’ve never tried installing them from the docker image.
I usually just copy the addon code to the local addons folder and install from there. For custom changes to the addon, I remove the "image" entry from the config.json so that it builds locally rather than pulling down the existing hosted image.