Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crane: Flattened images' timestamps don't relate to actual creation time #1996

Open
nivbend opened this issue Aug 11, 2024 · 1 comment
Open
Labels
bug Something isn't working lifecycle/stale

Comments

@nivbend
Copy link

nivbend commented Aug 11, 2024

Describe the bug

When flattening an image the blob's created field is the same as the original image's, while the flattened layer's created field is a zero timestamp. This makes it impossible to figure out when was the flattened image actually created and distinguish it from the original.

To Reproduce

$ crane flatten -t flat-busybox:1.0 busybox:latest
$ crane blob "flat-busybox@$(crane manifest flat-busybox:1.0 | jq -j '.config.digest')" | jq | head -n6
{
  "architecture": "arm64",
  "created": "2024-07-10T12:35:23.027267803Z",
  "history": [
    {
      "created": "0001-01-01T00:00:00Z",

Expected behavior

Timestamps should indicate when an image was created.

Additional context

  • Output of crane version: 0.20.0
  • Registry used: Any.
@nivbend nivbend added the bug Something isn't working label Aug 11, 2024
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lifecycle/stale
Projects
None yet
Development

No branches or pull requests

1 participant