The bad fragment of ImageData.from(Image) :
return builder().createdAt(Instant.ofEpochMilli(image.getCreated())).build();
The ofEpochMilli method is used but image.getCreated() returns timestamp as epoch (seconds). This makes all images to be dated to early 1970 and AgeBasedPullPolicy always pulls images from repo, even if local images are new.
Tested with testcontainers 1.15.3
Docker:
Connected to docker:
Server Version: 20.10.6
API Version: 1.41
Operating System: Docker Desktop
The bad fragment of
ImageData.from(Image):The
ofEpochMillimethod is used butimage.getCreated()returns timestamp as epoch (seconds). This makes all images to be dated to early 1970 andAgeBasedPullPolicyalways pulls images from repo, even if local images are new.Tested with testcontainers 1.15.3
Docker: