hello friends, I've got this weird error trying to...
# typescript
a
hello friends, I've got this weird error trying to pull an image from docker via pulumi
Copy code
// index.ts
const image = new docker.RemoteImage("ubuntuimage", {
  name: "ubuntu:latest"
});

const container = new docker.Container(`node-${args.nodeNum}`, {
      image: image.id,
});
error
Copy code
docker:index:Container (node-0):
    error: 1 error occurred:
        * Unable to create container with image sha256:27941809078cc9b2802deb2b0bb6feed6c236cde01e487f200e24653533701eeubuntu:latest: unable to pull image sha256:27941809078cc9b2802deb2b0bb6feed6c236cde01e487f200e24653533701eeubuntu:latest: error pulling image sha256:27941809078cc9b2802deb2b0bb6feed6c236cde01e487f200e24653533701eeubuntu:latest: invalid reference format
1
b
what is
args.image.id
set to?
a
oops lemme fix that snippet. it's supposed to be`image.id`
whats weird is that it worked a few days ago just fine
I fixed this issue. It turns out I had to change
Copy code
docker.Container(`node-${args.nodeNum}`, {
      image: image.id,
});
from
image: image.id
to
image: image.repoDigest