Stereoscope
go library for processing container images and simulating a squash filesystem
Install / Use
/learn @anchore/StereoscopeREADME
stereoscope
<p align="center"> <a href="https://goreportcard.com/report/github.com/anchore/stereoscope"><img src="https://goreportcard.com/badge/github.com/anchore/stereoscope" alt="Go Report Card"></a> <a href="https://github.com/anchore/stereoscope"><img src="https://img.shields.io/github/go-mod/go-version/anchore/stereoscope.svg" alt="GitHub go.mod Go version"></a> <a href="https://github.com/anchore/stereoscope/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache-2.0"></a> <a href="https://anchore.com/discourse"><img src="https://img.shields.io/badge/Discourse-Join-blue?logo=discourse" alt="Join our Discourse"></a> </p>A library for working with container image contents, layer file trees, and squashed file trees.
Getting Started
See examples/basic.go
docker image save centos:8 -o centos.tar
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)
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
345.9kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
