Skip to content

Commit 13ef7db

Browse files
committed
Update README
1 parent 2392ed0 commit 13ef7db

1 file changed

Lines changed: 50 additions & 6 deletions

File tree

README.md

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
# layer
22

3-
Print info about container images.
3+
Print info about container image layers.
4+
5+
```
6+
NAME:
7+
layer - inspect layers of an image
8+
9+
USAGE:
10+
layer [global options] command [command options] [arguments...]
11+
12+
COMMANDS:
13+
info info prints info about the layers of an image
14+
ls ls prints the files of a layer
15+
help, h Shows a list of commands or help for one command
16+
17+
GLOBAL OPTIONS:
18+
--help, -h show help (default: false)
19+
```
420

521
## Installation
622

723
```sh
8-
go install github.com/stackb/layer@latest
24+
$ go install github.com/stackb/layer@latest
925
```
1026

1127
## Usage
@@ -32,8 +48,36 @@ N Layer Size
3248
List files in an image:
3349

3450
```sh
35-
layer ls image.tar # all layers
36-
layer ls -S image.tar # sorted
37-
layer ls image.tar 1 # first layer
38-
layer ls image.tar sha256:8fdc131ec4308d2b9196a38855550dc347e83cc0f47d739754ddeb6e03ac2cbe # by diff ID
51+
$ layer ls image.tar # all layers
52+
$ layer ls -S image.tar # sorted
53+
$ layer ls image.tar 1 # first layer
54+
$ layer ls image.tar sha256:8fdc131ec4308d2b9196a38855550dc347e83cc0f47d739754ddeb6e03ac2cbe # by diff ID
55+
```
56+
57+
List files in an image (ref):
58+
59+
```sh
60+
$ layer ls -S index.docker.io/nginx:latest
61+
...
62+
-rw-r--r-- 0 B var/lib/ucf/hashfile
63+
-rw-r--r-- 0 B var/lib/ucf/registry
64+
-rwxr-xr-x 0 B var/log/nginx/.wh..wh..opq
65+
-rwxrwxrwx 0 B var/log/nginx/access.log
66+
-rwxrwxrwx 0 B var/log/nginx/error.log
67+
68+
--- sha256:f5ab86d69014270bcf4d5ce819b9f5c882b35527924ffdd11fecf0fc0dde81a4 ---
69+
Mode Size Name
70+
-rwxrwxr-x 1.2 kB docker-entrypoint.sh
71+
72+
--- sha256:c876aa251c80272eb01eec011d50650e1b8af494149696b80a606bbeccf03d68 ---
73+
Mode Size Name
74+
-rwxrwxr-x 2.0 kB docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
75+
76+
--- sha256:7046505147d7f3edbf7c50c02e697d5450a2eebe5119b62b7362b10662899d85 ---
77+
Mode Size Name
78+
-rwxrwxr-x 1.0 kB docker-entrypoint.d/20-envsubst-on-templates.sh
79+
80+
--- sha256:b6812e8d56d65d296e21a639b786e7e793e8b969bd2b109fd172646ce5ebe951 ---
81+
Mode Size Name
82+
-rwxrwxr-x 4.6 kB docker-entrypoint.d/30-tune-worker-processes.sh
3983
```

0 commit comments

Comments
 (0)