summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-08 21:55:54 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-08 21:55:54 +0200
commit2e28d3f68c10dadc87bbff9ff2cc6410798384ae (patch)
treea15742f8e65d1ff51365d69fd603e7804b189200
parent7e7c6a5f120f317e3e4555939a099f48cf0b27e0 (diff)
downloadvyos-1x-2e28d3f68c10dadc87bbff9ff2cc6410798384ae.tar.gz
vyos-1x-2e28d3f68c10dadc87bbff9ff2cc6410798384ae.zip
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.
-rw-r--r--data/templates/container/storage.conf.j22
1 files changed, 1 insertions, 1 deletions
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"