Comment 5 for bug 1483987

Revision history for this message
Ian Booth (wallyworld) wrote : Re: [LXC caching] deletion of images does not work

The first time a given host needs to start an LXC container, the image is retrieved via the Juju server, and this will cause the image to be cached by Juju. And if LXC host caching is used, the image is also cached locally on the host. So subsequent images *on that same host* will come from the host image cache, not Juju's cache.

The images listed by Juju are used for containers on *new* hosts. This prevents new hosts from having to go to the internet to get the images. This approach allowed a demo using MAAS to start up in a few minutes rather than 20 - 30 minutes due to each new acquired machine having to fetch the image over a slow link.

So listing images in Juju shows images that will be used when new hosts are created and an lxc container is first started.

The answer to the questions are therefore i) yes and ii) no (because the images are used on new hosts)