Skip to content

Conversation

@ljluestc
Copy link

Fixes #404 by adding a --export-metadata flag to export layer metadata to text files, including the Dockerfile command and filesystem snapshot (path, permissions, size, with * for changed files).

Changes:

  • Added --export-metadata flag in cli/cli.go to export layer data to files like 01_run_apk_add.txt.
  • Updated filetree/filetree.go to include command and change type in FileTree.
  • Modified image/docker/image.go to capture layer commands from history.
  • Added tests in cli/cli_test.go to verify export format and directory creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desperately need metadata export option.

1 participant