Publishing images
When a container or container snapshot is ready for consumption by others, it can be published as a new
image using;
l x c p u b l i s h u1/YYYY−MM−DD −− a l i a s foo −2.0
The published image will be private by default, meaning that LXD will not allow clients without a trusted
certificate to see them. If the image is safe for public viewing (i.e. contains no private information), then the
‘public’ flag can be set, either at publish time using
l x c p u b l i s h u1/YYYY−MM−DD −− a l i a s foo −2.0 p u b l i c=t r u e
or after the fact using
l x c image e d i t foo −2.0
and changing the value of the public field.
Image export and import
Image can be exported as, and imported from, tarballs:
l x c image e x p o r t foo −2.0 foo − 2 . 0 . t a r . gz
l x c image import foo − 2 . 0 . t a r . gz −− a l i a s foo −2.0 −−p u b l i c
Do'stlaringiz bilan baham: