< Previous | Contents | Next >
5.15. Images and containers
LXD is image based. When you create your first container, you will generally do so using an existing image. LXD comes pre-configured with three default image remotes:
• ubuntu: This is a simplestreams-based44 remote serving released ubuntu cloud images.
• ubuntu-daily: This is another simplestreams based remote which serves 'daily' ubuntu cloud images. These provide quicker but potentially less stable images.
• images: This is a remote publishing best-effort container images for many distributions, created using community-provided build scripts.
To view the images available on one of these servers, you can use:
lxc image list ubuntu:
Most of the images are known by several aliases for easier reference. To see the full list of aliases, you can use
lxc image alias list images:
Any alias or image fingerprint can be used to specify how to create the new container. For instance, to create an amd64 Ubuntu 14.04 container, some options are:
lxc launch ubuntu:14.04 trusty1 lxc launch ubuntu:trusty trusty1
lxc launch ubuntu:trusty/amd64 trusty1 lxc launch ubuntu:lts trusty1