项目作者: anchore

项目描述 :
go library for processing container images and simulating a squash filesystem
高级语言: Go
项目地址: git://github.com/anchore/stereoscope.git
创建时间: 2020-05-05T18:39:19Z
项目社区:https://github.com/anchore/stereoscope

开源协议:Apache License 2.0

下载


stereoscope


Go Report Card
GitHub go.mod Go version
License: Apache-2.0
Join our Discourse

A library for working with container image contents, layer file trees, and squashed file trees.

Getting Started

See examples/basic.go

  1. docker image save centos:8 -o centos.tar
  2. go run examples/basic.go ./centos.tar

Note: To run tests you will need skopeo installed.

Overview

This library provides the means to:

  • parse and read images from multiple sources, supporting:
    • docker V2 schema images from the docker daemon, podman, or archive
    • OCI images from disk, directory, or registry
    • singularity formatted image files
  • build a file tree representing each layer blob
  • create a squashed file tree representation for each layer
  • search one or more file trees for selected paths
  • catalog file metadata in all layers
  • query the underlying image tar for content (file content within a layer)