https://pulumi.com logo
Title
d

damp-school-17708

07/06/2021, 2:21 PM
Hi all, I think I've hit a bug with pulumi building docker images, I am trying to build a multiarch image, in order to do that I've setup my mac (M1) to use buildx by default. When I add the
--platform
flag into the pulumi code I get back an error, that the command is not right. If I copy the command and paste into the terminal as-is the docker build works... I've put a very simple sample into github to reproduce https://github.com/aterreno/pulumi-docker-multiarch What's the best repo to open an issue on github @pulumi/pulumi? Or am I missing something else and it's not a bug? Thanks
a

agreeable-eye-87399

07/06/2021, 2:31 PM
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!
d

damp-school-17708

07/06/2021, 2:37 PM
thanks @agreeable-eye-87399 I'll do that 🙂
a

agreeable-eye-87399

07/06/2021, 2:38 PM
once you’ve done that, we can also open an issue on https://github.com/pulumi/pulumi-docker which is where we would need to add buildx support!
thank you for posting the discussion! the issue that was filed is at https://github.com/pulumi/pulumi-docker/issues/296 as well!
d

damp-school-17708

07/06/2021, 4:56 PM
thanks I've added a few comments, I think the underlying issue is that when you spawn a process in node you end up using 'standard docker' and not 'docker buildx' ...