quiet-truck-58459
05/19/2021, 1:57 PMimport time
import pulumi
import pulumi_docker as docker
alpine_remote_image = docker.RemoteImage("alpineRemoteImage",
name="alpine:latest",
pull_triggers=[str(time.time())]
)
prehistoric-nail-50687
05/19/2021, 2:03 PMlatest
is just a label as any other (like v1.1
) and does not have a meaning like: go and get me the latest image you can find. So if there is one with the label latest
already on your system, then it will use that one.
This has nothing to do with pulumi I think.quiet-truck-58459
05/19/2021, 2:03 PMprehistoric-nail-50687
05/19/2021, 2:17 PMquiet-truck-58459
05/19/2021, 2:19 PMRemoteImage
use case & behaviour is not what I think it is.prehistoric-nail-50687
05/19/2021, 2:20 PMquiet-truck-58459
05/19/2021, 2:27 PMOUTPUT VALUE
alpine_remote_image {"build":null,"force_remove":null,"id":"sha256:6dbb9cc54074106d46d4ccb330f2a40a682d49dda5f4844962b7dce9fe44aaecalpine:latest","keep_locally":null,"latest":"sha256:6dbb9cc54074106d46d4ccb330f2a40a682d49dda5f4844962b7dce9fe44aaec","name":"alpine:latest","output":null,"pull_trigger":null,"pull_triggers":null,"urn":"urn:pulumi:staging::nozzle-insights-content-aggregator::docker:index/remoteImage:RemoteImage::alpine-remote-image"}
broad-eve-12764
05/19/2021, 4:05 PMpulumi up
or pulumi preview
?quiet-truck-58459
05/19/2021, 6:24 PMpulumi up
. It returned data and a sha256 digest. But the digest did not match anything in the remote repo 🤯broad-eve-12764
05/19/2021, 8:15 PMquiet-truck-58459
05/19/2021, 9:49 PM