Skip to content

Commit b387a48

Browse files
committed
Initial commit
0 parents  commit b387a48

5 files changed

Lines changed: 1576 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bazel-*

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# layer
2+
3+
Print info about container image tarballs.
4+
5+
## Installation
6+
7+
```sh
8+
go get github.com/stackb/layer
9+
```
10+
11+
## Usage
12+
13+
Show layers in an image:
14+
15+
```sh
16+
layer info myimage.tar
17+
```
18+
19+
List files in an image:
20+
21+
```sh
22+
layer ls myimage.tar # all layers
23+
layer ls -S myimage.tar # sorted
24+
layer ls myimage.tar 1 # first layer
25+
layer ls myimage.tar sha256:8fdc131ec4308d2b9196a38855550dc347e83cc0f47d739754ddeb6e03ac2cbe # by diff ID
26+
```

go.mod

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module github.com/stackb/layer
2+
3+
go 1.16
4+
5+
require (
6+
github.com/dustin/go-humanize v1.0.0
7+
github.com/google/go-containerregistry v0.8.0
8+
github.com/urfave/cli/v2 v2.6.0
9+
)

0 commit comments

Comments
 (0)