containers...mport-layer(1)
containers-storage-import-layer π
okay bestie, welcome to the General Commands Manual section for containers-storage-import-layer β yes that's the whole name, she's long but she's worth it β¨
β¨ NAME β¨
containers-storage-import-layer β Import files to a new layer π
πΈ SYNOPSIS πΈ
containers-storage import-layer [options [...]] [parentLayerNameOrID]
π DESCRIPTION π
so this subcommand is literally a two-for-one combo deal β it's containers-storage create-layer and containers-storage apply-diff holding hands π«Ά
here's the lore: when a layer first gets created with containers-storage create-layer, it has no changes relative to its parent layer. like, zero, none, a blank slate, main character with no backstory. from there you've got two paths, bestie:
- mount it read-write and mess with the contents directly, or
- add stuff (or remove stuff) by applying a layer diff with
containers-storage apply-diff.
that's it, that's the vibe check. π
π OPTIONS π
-nname β sets an optional name for the layer. but heads up: if that name is already taken, you get an error. no name-stealing allowed π-i|--idID β sets the ID for the layer. if you don't specify one, she'll just generate one for you β¨-f|--filefilename β tells it which file the diff should be read from. if you don't use this option, the diff gets read from standard input instead π₯-l|--labelmount-label β sets the label that should be assigned as an SELinux context when the layer gets mounted π·οΈ-r|--readonlyβ marks the layer as readonly. she's off the market, no edits π-j|--jsonβ prefer JSON output π§Ύ--uidmapβ a UID map specified in the format expected bysubuid. it cannot be specified simultaneously with--hostuidmapπ«--gidmapβ a GID map specified in the format expected bysubgid. it cannot be specified simultaneously with--hostuidmapπ«--hostuidmapβ force host UID map. it cannot be specified simultaneously with--uidmapor--subuidmapπ βοΈ--hostgidmapβ force host GID map. it cannot be specified simultaneously with--gidmapor--subgidmapπ βοΈ--subuidmapusername β create a UID map for username using the data from/etc/subuid. it cannot be specified simultaneously with--hostuidmapπ«--subgidmapgroup-name β create a GID map for group-name using the data from/etc/subgid. it cannot be specified simultaneously with--hostuidmapπ«
not me warning you twice but fr fr, those map options are giving "pick a lane" energy β mix the wrong ones and it's a no π
π¦ EXAMPLE π¦
containers-storage import-layer -f 71841c97e320d6cde.tar.gz -n new-layer somelayer
ate, no crumbs. π₯
π SEE ALSO π
containers-storage-create-layer(1)containers-storage-apply-diff(1)
go read those next bestie, they're iconic too π
and that's the whole page, periodt π
this little writeup is from the General Commands Manual source, version dated April 2019, filed under containers...mport-layer(1) β mwah, take care of her πβ¨π¦
π¦ 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