Skip to content

Commit

Permalink
recipes: List files from a local image (fixes google#1924)
Browse files Browse the repository at this point in the history
Useful for debugging image builds
  • Loading branch information
abitrolly committed Apr 19, 2024
1 parent 98dd3e9 commit defa660
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/crane/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ Useful tips and things you can do with `crane` and other standard tools.

### List files in an image

```
Remote image from a registry.
```sh
crane export ubuntu - | tar -tvf - | less
```
Local image from `podman`.
```sh
podman image save bb2-make-single - | crane export - - | tar -tvf - | less
```

### Extract a single file from an image

Expand Down

0 comments on commit defa660

Please sign in to comment.