File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616COMMANDS:
1717 inspect print info about the layers of an image
1818 ls ls prints the files of a layer
19+ extract extract files from an image and print to stdout
1920 help, h Shows a list of commands or help for one command
2021
2122GLOBAL OPTIONS:
@@ -89,6 +90,16 @@ Mode Size Name
8990-rwxrwxr-x 4.6 kB docker-entrypoint.d/30-tune-worker-processes.sh
9091```
9192
93+ Extract files from an image:
94+
95+ ``` sh
96+ layer extract image.tar etc/nginx/nginx.conf # print to stdout
97+ layer extract image.tar etc/nginx/nginx.conf --output_dir /tmp # write to /tmp/etc/nginx/nginx.conf
98+ layer extract image.tar file1 file2 file3 # multiple files
99+ ```
100+
101+ Extract uses the topmost layer containing each file, matching container runtime behavior.
102+
92103---
93104
94105- See also https://github.com/wagoodman/dive .
You can’t perform that action at this time.
0 commit comments