I am attempting to work with the Docker provider a...
# general
s
I am attempting to work with the Docker provider and noticed that containers are being recreated even though I am using immutable images. How come? The relevant snippet is the following:
Copy code
const traefikImagePinned = new docker.RemoteImage(
    'TraefikImagePinned',
    { name: 'traefik:v3.3.6@sha256:83f3c843133530e4aa45e6ddc415488583a8a01c88adc5022d415c6e97ceeaae' },
    { provider: dockerProvider },
)

new docker.Container(
    'TraefikContainer',
    { name: 'traefik', image: traefikImagePinned.repoDigest, restart: 'unless-stopped' },
    { provider: dockerProvider },
)
m
Hi @shy-refrigerator-41911, can you run this
pulumi preview --diff
and see if there is any differences?
s
@many-telephone-49025 I opened an issue with the diff over here: https://github.com/pulumi/pulumi-docker/issues/1431 Something I forgot to mention over there is that
traefikImagePinned.imageId
is stable while
.repoDigest
is not. Something I didn't mention in the issue yet is that
m
@shy-refrigerator-41911 I answered in the ticket from you.