1- # layer
1+ <p align =" center " >
2+ <img alt =" GoReleaser Logo " src =" layer.png " />
3+ <h3 align =" center " >Layer</h3 >
4+ <p align =" center " >A tool for inspecting container layers</p >
5+ </p >
26
3- Print info about container image layers.
7+ ---
48
59```
610NAME:
@@ -21,21 +25,21 @@ GLOBAL OPTIONS:
2125## Installation
2226
2327``` sh
24- $ go install github.com/stackb/layer@latest
28+ go install github.com/stackb/layer@latest
2529```
2630
2731## Usage
2832
2933Show layers in an image (tarball filename):
3034
3135``` sh
32- $ layer info image.tar
36+ layer info image.tar
3337```
3438
3539Show layers in an image (ref):
3640
3741```
38- $ layer info index.docker.io/nginx:latest
42+ layer info index.docker.io/nginx:latest
3943N Layer Size
40441 sha256:9c1b6dd6c1e6be9fdd2b1987783824670d3b0dd7ae8ad6f57dc3cea5739ac71e 31 MB
41452 sha256:4b7fffa0f0a4a72b2f901c584c1d4ffb67cce7f033cc7969ee7713995c4d2610 25 MB
@@ -48,16 +52,16 @@ N Layer Size
4852List files in an image:
4953
5054``` sh
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+ layer ls image.tar # all layers
56+ layer ls -S image.tar # sorted
57+ layer ls image.tar 1 # first layer
58+ layer ls image.tar sha256:8fdc131ec4308d2b9196a38855550dc347e83cc0f47d739754ddeb6e03ac2cbe # by diff ID
5559```
5660
5761List files in an image (ref):
5862
5963``` sh
60- $ layer ls -S index.docker.io/nginx:latest
64+ layer ls -S index.docker.io/nginx:latest
6165...
6266-rw-r--r-- 0 B var/lib/ucf/hashfile
6367-rw-r--r-- 0 B var/lib/ucf/registry
@@ -81,3 +85,8 @@ Mode Size Name
8185Mode Size Name
8286-rwxrwxr-x 4.6 kB docker-entrypoint.d/30-tune-worker-processes.sh
8387```
88+
89+ ---
90+
91+ <a href =" https://www.flaticon.com/free-icons/hangar " style =" font-size : 8px " title =" hangar icons " >Layer
92+ Image by Pause08</a >
0 commit comments