Is there a way to discover the name (aka description) of the image that a container was created with? I know that with more recent versions of lxd, I can do lxc list -c nf to get the container name and the base image id, but is there a way to link that id, i.e., 84a71299044b back to Ubuntu 18.04.1 LTS?
I’m asking, since if I have a fleet of LXD containers, I would like a quick an easy way to say “list all containers and the images they were built from” so I can quickly grok which OS is deployed…
...
[DIR] release-20180613/ 14-Jun-2018 07:02 - Released Image
[DIR] release-20180617/ 18-Jun-2018 07:01 - Released Image
[DIR] release-20180724/ 25-Jul-2018 07:01 - Released Image
...
If you use the serial number, you are directed to the correct directory of the released container image.
From there, you can look into SHA1SUMS and identify your exact container image.
I downloaded all checksum files for 18.04 and searched for 84a71299044b. I did not get a match. Did you use ubuntu:18.04 or images:18.04?
It should also be possible somehow to extract the base container image from LXD.
First, a container can have no image (if imported from physical) hence the space after “,”
Also, without implicit-csv-header first container is missing for me (Ubuntu 18.04, jq and miller from apt)