I bumped my head on this a few months ago, but I never really fully documented my solution (the workaround I did at the time was to push the image to docker hub and have my pulumi program pull that image, but that isn’t really a great solution)
This isn’t a solution by any means, but we can keep hacking on it.
It might be helpful to post this to
https://github.com/pulumi/pulumi/discussions as I’m sure more folks will come up with this problem and it won’t get lost in slack backscroll then!