From 2e28d3f68c10dadc87bbff9ff2cc6410798384ae Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 8 May 2022 21:55:54 +0200 Subject: container: T4000: use unique storage for container image Do no longer store container images which are pulled from any registry to /config/containers. Instead save them to a unified location that is the same accross all images on the system: /usr/lib/live/mount/persistence/container/storage Reason for this change is, while living under /config/containers a VyOS image upgrade copied all downloaded container images to the new image - doubling the used space per image on every upgrade. With the new location the images are all the same for every VyOS image running. Container userdata can still be stored under /config and copied to a newer image making rollbacks still efficient. --- data/templates/container/storage.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/templates/container') diff --git a/data/templates/container/storage.conf.j2 b/data/templates/container/storage.conf.j2 index e3388ea7e..665f9bf95 100644 --- a/data/templates/container/storage.conf.j2 +++ b/data/templates/container/storage.conf.j2 @@ -1,4 +1,4 @@ ### Autogenerated by container.py ### [storage] driver = "vfs" - graphroot = "/config/containers/storage" + graphroot = "/usr/lib/live/mount/persistence/container/storage" -- cgit v1.2.3