Container Storage Library
Go to file
tomsweeneyredhat 19ffd5bbbc Bump c/storage to v1.58.0
The first SIC Vendor Dance step for Podman v5.5.
Bump c/storage to v1.58.0

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-04-15 10:56:07 -04:00
.github
cmd/containers-storage Remove unneeded conversion 2025-04-01 16:18:43 -07:00
contrib/cirrus
docs
drivers Fix and annotate Stat_t fields conversion 2025-04-01 16:18:55 -07:00
hack dirvers/btrfs: remove btrfs_noversion tag 2025-03-31 18:46:41 +02:00
internal Fix and annotate Stat_t fields conversion 2025-04-01 16:18:55 -07:00
pkg pkg/archive: catch file Close() error 2025-04-09 14:15:20 +02:00
tests store: use canonical image mapping when mounting 2025-03-25 17:30:28 +01:00
types types: use strings.ReplaceAll 2025-03-26 14:29:57 -07:00
vendor fix(deps): update module golang.org/x/sys to v0.32.0 2025-04-08 17:26:15 +00:00
.cirrus.yml CI: add libsubid to lint task 2025-03-28 12:09:51 +01:00
.codespellrc
.dockerignore
.gitignore
.golangci.yml ci: add nolintlint and unconvert linters 2025-04-01 16:18:56 -07:00
.mailmap
AUTHORS
CODE-OF-CONDUCT.md
CONTRIBUTING.md Add link to c/common contributor's guide 2025-03-17 21:43:09 +01:00
LICENSE
Makefile ci: switch to golangci-lint v2 2025-03-26 18:47:22 -07:00
NOTICE
OWNERS
README.md
SECURITY.md
VERSION Bump c/storage to v1.58.0 2025-04-15 10:56:07 -04:00
check.go
check_test.go
containers.go Merge pull request #2305 from kolyshkin/for-range 2025-04-01 21:57:19 +00:00
deprecated.go Use any instead of interface{} 2025-03-31 15:37:25 -07:00
errors.go
go.mod fix(deps): update module golang.org/x/sys to v0.32.0 2025-04-08 17:26:15 +00:00
go.sum fix(deps): update module golang.org/x/sys to v0.32.0 2025-04-08 17:26:15 +00:00
idset.go
idset_test.go
images.go Use any instead of interface{} 2025-03-31 15:37:25 -07:00
images_test.go
jsoniter.go
layers.go Merge pull request #2306 from kolyshkin/modernize 2025-04-01 22:00:08 +00:00
layers_test.go Use for range over integers 2025-03-31 15:39:12 -07:00
lockfile_compat.go
storage.conf
storage.conf-freebsd
store.go Merge pull request #2306 from kolyshkin/modernize 2025-04-01 22:00:08 +00:00
store_test.go
userns.go Use min/max to simplify the code 2025-03-28 20:08:32 -07:00
userns_test.go
userns_unsupported.go
utils.go

README.md

storage is a Go library which aims to provide methods for storing filesystem layers, container images, and containers. A containers-storage CLI wrapper is also included for manual and scripting use.

To build the CLI wrapper, use 'make binary'.

Operations which use VMs expect to launch them using 'vagrant', defaulting to using its 'libvirt' provider. The boxes used are also available for the 'virtualbox' provider, and can be selected by setting $VAGRANT_PROVIDER to 'virtualbox' before kicking off the build.

The library manages three types of items: layers, images, and containers.

A layer is a copy-on-write filesystem which is notionally stored as a set of changes relative to its parent layer, if it has one. A given layer can only have one parent, but any layer can be the parent of multiple layers. Layers which are parents of other layers should be treated as read-only.

An image is a reference to a particular layer (its top layer), along with other information which the library can manage for the convenience of its caller. This information typically includes configuration templates for running a binary contained within the image's layers, and may include cryptographic signatures. Multiple images can reference the same layer, as the differences between two images may not be in their layer contents.

A container is a read-write layer which is a child of an image's top layer, along with information which the library can manage for the convenience of its caller. This information typically includes configuration information for running the specific container. Multiple containers can be derived from a single image.

Layers, images, and containers are represented primarily by 32 character hexadecimal IDs, but items of each kind can also have one or more arbitrary names attached to them, which the library will automatically resolve to IDs when they are passed in to API calls which expect IDs.

The library can store what it calls metadata for each of these types of items. This is expected to be a small piece of data, since it is cached in memory and stored along with the library's own bookkeeping information.

Additionally, the library can store one or more of what it calls big data for images and containers. This is a named chunk of larger data, which is only in memory when it is being read from or being written to its own disk file.

Contributing Information about contributing to this project.