containers-storage(1)
π containers-storage β the manual page, but make it make sense π
okay bestie, so this is a page from the General Commands Manual for containers-storage, and no cap, it's a whole vibe. sit down, grab a boba, we're doing this. π§β¨
πΈ NAME πΈ
containers-storage β Manage layer/image/container storage
β¨ SYNOPSIS β¨
containers-storage [subcommand] [--help]
π¦ DESCRIPTION π¦
So containers-storage is like the front-end bestie for the containers/storage library. π
yes, you can use it to manage storage for filesystem layers, images, and containers directly, but its main character energy is really about troubleshooting and querying the state of storage that other processes are already managing. iykyk.
Notionally, a complete filesystem layer is composed of a container filesystem plus some bookkeeping information. Other layers that are children of that layer default to sharing its contents β but any changes made to the contents of the children are not reflected in the parent. π«Ά This arrangement is literally designed to save disk space: by storing the child layer only as a set of changes relative to its parent, the parent's contents don't need to be duplicated for each of the parent's children. and of course, each child can have its own children. The contents of parent layers should not be modified. π
An image is a reference to a particular layer, plus some bookkeeping information. Presumably the image points to a layer that's been modified β possibly in multiple steps β from some general-purpose parent, so that it's suitable for running an intended application. Multiple images can reference a single layer while differing only in the additional bookkeeping info they carry. The contents of images should be considered read-only. π
A container is essentially a layer that is a child of a layer referred to by an image (put another way: a container is instantiated from an image), along with some bookkeeping information. They do not have children and their layers can not be directly referred to by images. This ensures that changes to the contents of a container's layer do not affect other images or layers, so they are considered writeable. π
All of layers, images, and containers can have metadata which containers-storage manages attached to them. Generally this metadata is not expected to be large, because it is cached in memory. π§
Images and containers can also have arbitrarily-named data items attached to them. Generally, this data can be larger than metadata, and it is not kept in memory unless it is being retrieved or written. π¦
It is expected that signatures which can be used to verify an image's contents will be stored as data items for that image, along with any template configuration data recommended for use in containers which derive from the image. It is also expected that a container's run-time configuration will be stored as data items. periodt.
π SUB-COMMANDS π
The containers-storage command's features are broken down into several subcommands:
containers-storage add-names(1)β Add layer, image, or container name or namescontainers-storage applydiff(1)β Apply a diff to a layercontainers-storage applydiff-using-staging-dir(1)β Apply a diff to a layer staging the new content first.containers-storage changes(1)β Compare two layerscontainers-storage check(1)β Check for and possibly remove damaged layers/images/containerscontainers-storage container(1)β Examine a containercontainers-storage containers(1)β List containerscontainers-storage create-container(1)β Create a new container from an imagecontainers-storage create-image(1)β Create a new image using layerscontainers-storage create-layer(1)β Create a new layercontainers-storage create-storage-layer(1)β Create a new layer in the lower-level storage drivercontainers-storage delete(1)β Delete a layer or image or container, with no safety checkscontainers-storage delete-container(1)β Delete a container, with safety checkscontainers-storage delete-image(1)β Delete an image, with safety checkscontainers-storage delete-layer(1)β Delete a layer, with safety checkscontainers-storage diff(1)β Compare two layerscontainers-storage diffsize(1)β Compare two layerscontainers-storage exists(1)β Check if a layer or image or container existscontainers-storage get-container-data(1)β Get data that is attached to a containercontainers-storage get-image-data(1)β Get data that is attached to an imagecontainers-storage image(1)β Examine an imagecontainers-storage images(1)β List imagescontainers-storage layers(1)β List layerscontainers-storage list-container-data(1)β List data items that are attached to a containercontainers-storage list-image-data(1)β List data items that are attached to an imagecontainers-storage metadata(1)β Retrieve layer, image, or container metadatacontainers-storage mount(1)β Mount a layer or containercontainers-storage mounted(1)β Check if a file system is mountedcontainers-storage set-container-data(1)β Set data that is attached to a containercontainers-storage set-image-data(1)β Set data that is attached to an imagecontainers-storage set-metadata(1)β Set layer, image, or container metadatacontainers-storage set-names(1)β Set layer, image, or container name or namescontainers-storage shutdown(1)β Shut down graph drivercontainers-storage status(1)β Check on graph driver statuscontainers-storage unmount(1)β Unmount a layer or containercontainers-storage unshare(1)β Run a command in a user namespacecontainers-storage version(1)β Return containers-storage version informationcontainers-storage wipe(1)β Wipe all layers, images, and containers
π OPTIONS π
--helpβ Print the list of available sub-commands. When a sub-command is specified, provide information about that command. π₯°--debug,-Dβ Increases the amount of debugging information which is printed. π--graph,-g=/var/lib/containers/storageβ Overrides the root of the storage tree, used for storing layer contents and information about layers, images, and containers. π³--run,-R=/run/containers/storageβ Overrides the root of the runtime state tree, currently used mainly for noting the location where a given layer is mounted (seecontainers-storage mount) so that it can be unmounted by path name as an alternative to unmounting by ID or name. π--storage-driver,-sβ Specifies which storage driver to use. If not set, but$STORAGE_DRIVERis set in the environment, its value is used. If the storage tree has previously been initialized, neither needs to be provided. If the tree has not previously been initialized and neither is set, a hard-coded default is selected. π--storage-opt=[]β Set options which will be passed to the storage driver. If not set, but$STORAGE_OPTSis set in the environment, its value is treated as a comma-separated list and used instead. If the storage tree has previously been initialized, these need not be provided. βοΈ--unshare,-Uβ When started by a non-root user, run inside of a new user namespace configured using the system's default ID mappings for the non-root user. π
π ENVIRONMENT OVERRIDES π
CONTAINERS_STORAGE_CONFβ If set will use the configuration file path provided in$CONTAINERS_STORAGE_CONFinstead of the default/etc/containers/storage.conf. ποΈ
π EXAMPLES π
containers-storage layers -t
π BUGS π
This is still a work in progress, so some functionality may not yet be implemented, and some will be removed if it is found to be unnecessary. That said, if anything isn't working correctly, please report it to the project's issue tracker β¨https://github.com/containers/storage/issuesβ©. π
π§ FOOTNOTES π§
The Containers Storage project is committed to inclusivity, a core value of open source. The master and slave mount propagation terminology is used in this repository. This language is problematic and divisive, and should be changed. However, these terms are currently used within the Linux kernel and must be used as-is at this time. When the kernel maintainers rectify this usage, Containers Storage will follow suit immediately. π«Ά
and that's the whole page bestie!! π this lil' icon of a manpage was dated August 2016, and it belongs to containers-storage(1) β slay, we ate, no crumbs left. πβ¨
π¦ where this page comes from
- ubuntu resolute: containers-storage 1.61.0+ds1-6 Β· Apache-2.0
- ubuntu stonking: containers-storage 1.63.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms