GithubHelp home page GithubHelp logo

layer's Introduction

Layer Logo

Layer

A tool for inspecting container layers


NAME:
   layer - inspect layers of an image

USAGE:
   layer [global options] command [command options] [arguments...]

COMMANDS:
   inspect  print info about the layers of an image
   ls       ls prints the files of a layer
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

Installation

go install github.com/stackb/layer@latest

Or, download a precompiled binary release.

Usage

Show layers in an image (tarball filename):

layer inspect image.tar

Show layers in an image (ref):

layer inspect index.docker.io/nginx:latest
N  Layer                                                                    Size
1  sha256:9c1b6dd6c1e6be9fdd2b1987783824670d3b0dd7ae8ad6f57dc3cea5739ac71e  31 MB
2  sha256:4b7fffa0f0a4a72b2f901c584c1d4ffb67cce7f033cc7969ee7713995c4d2610  25 MB
3  sha256:f5ab86d69014270bcf4d5ce819b9f5c882b35527924ffdd11fecf0fc0dde81a4  604 B
4  sha256:c876aa251c80272eb01eec011d50650e1b8af494149696b80a606bbeccf03d68  893 B
5  sha256:7046505147d7f3edbf7c50c02e697d5450a2eebe5119b62b7362b10662899d85  667 B
6  sha256:b6812e8d56d65d296e21a639b786e7e793e8b969bd2b109fd172646ce5ebe951  1.4 kB

List files in an image:

layer ls image.tar    # all layers
layer ls -S image.tar # sorted
layer ls image.tar 1  # first layer
layer ls image.tar sha256:8fdc131ec4308d2b9196a38855550dc347e83cc0f47d739754ddeb6e03ac2cbe # by diff ID

List files in an image (ref):

layer ls -S index.docker.io/nginx:latest
...
-rw-r--r--  0 B     var/lib/ucf/hashfile
-rw-r--r--  0 B     var/lib/ucf/registry
-rwxr-xr-x  0 B     var/log/nginx/.wh..wh..opq
-rwxrwxrwx  0 B     var/log/nginx/access.log
-rwxrwxrwx  0 B     var/log/nginx/error.log

--- sha256:f5ab86d69014270bcf4d5ce819b9f5c882b35527924ffdd11fecf0fc0dde81a4 ---
Mode        Size    Name
-rwxrwxr-x  1.2 kB  docker-entrypoint.sh

--- sha256:c876aa251c80272eb01eec011d50650e1b8af494149696b80a606bbeccf03d68 ---
Mode        Size    Name
-rwxrwxr-x  2.0 kB  docker-entrypoint.d/10-listen-on-ipv6-by-default.sh

--- sha256:7046505147d7f3edbf7c50c02e697d5450a2eebe5119b62b7362b10662899d85 ---
Mode        Size    Name
-rwxrwxr-x  1.0 kB  docker-entrypoint.d/20-envsubst-on-templates.sh

--- sha256:b6812e8d56d65d296e21a639b786e7e793e8b969bd2b109fd172646ce5ebe951 ---
Mode        Size    Name
-rwxrwxr-x  4.6 kB  docker-entrypoint.d/30-tune-worker-processes.sh

layer's People

Contributors

pcj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.