https://pulumi.com logo
#general
Title
# general
b

broad-house-79544

11/28/2022, 6:43 AM
I was going through this pulumi tutorial (https://www.pulumi.com/learn/pulumi-fundamentals/configure-and-provision/), but it's failing with error(container exit...) . After inspecting the image built, I found that it is taking the "Architecture": "arm64" for building image, and I am using Ubuntu amd64. I am sure it's the reason why it's failing. But not sure why it is taking the arm64 eventhough the Dockerfile mentioned "FROM mongo:focal"? Any idea??
m

many-telephone-49025

11/28/2022, 11:59 AM
Are you running this on a macbook M1 by any chance?
b

broad-house-79544

11/28/2022, 12:49 PM
@many-telephone-49025 No, I am using Ubuntu 22.04
m

many-telephone-49025

11/28/2022, 12:54 PM
But not on an ARM architecture? Normally the docker engine takes the info, which image to pull from the underling architecture. I for example. work on a M1 so I have to add:
FROM --platform=linux/amd64 xxx
to my dockerfile so it uses explicit the amd64 as from
If I am deploy later to e.g Kubernetes on linux
b

broad-house-79544

11/28/2022, 1:02 PM
In the Dockerfile, "FROM mongo:focal" is mentioned. (using this repo: https://github.com/pulumi/tutorial-pulumi-fundamentals) The Dockerfile is in data folder. Also, I tried to pull the image(mongo:focal), it is pulling the amd64 one, but why pulumi is pulling the arm one?
The mongo image is getting built using this:
Copy code
// build our mongodb image!
const mongoImage = new docker.RemoteImage("mongo", {
    name: "pulumi/tutorial-pulumi-fundamentals-database-local:latest",
});
2 Views