YAML configuration files for official Ubuntu container images - where can I find them?

I’m trying to figure out what’s the difference between official Ubuntu container images from ubuntu: repository and those from community images: repository. Community images are built using distrobuilder from .yaml files found here.

Where can I find .yaml files for official Ubuntu container images? Are they somewhere at https://cloud-images.ubuntu.com ?

Hi,

The ubuntu*: images are built by Canonical’s CPC team and are the official Ubuntu images (both container and VM types).

They don’t use distrobuilder to build them AFAIK, but separate tooling.

The main differences between them and the community images that I’ve observed are that the official Ubuntu images include sshd, cloud-init and snapd installed by default.

There’s also the ubuntu-minimal: variants that have fewer packages installed.

2 Likes

Thank you. Since comparing YAML files is impossible, I tried listing all installed packages in ubuntu:22.04 and images:ubuntu/jammy/cloud containers using command:

apt list --installed | cut -d/ -f1 > 1st_file.txt

Then I did a diff on two output files:

diff --changed-group-format='%>' --unchanged-group-format='' 1st_file.txt 2nd_file.txt

Official Ubuntu 22.04 container (regular one, not minimal) has way more packages installed compared to community version. This explains why they may behave slightly differently during use.

Here is a list of additional packages if someone is interested:

apparmor
apport-symptoms
apport
bash-completion
bc
bcache-tools
bind9-dnsutils
bind9-host
bind9-libs
binutils-common
binutils-x86-64-linux-gnu
binutils
bolt
bsdextrautils
btrfs-progs
busybox-initramfs
busybox-static
byobu
cloud-initramfs-copymods
cloud-initramfs-dyn-netconf
command-not-found
cpio
cryptsetup-bin
cryptsetup-initramfs
cryptsetup
curl
dbus-user-session
dmeventd
dmidecode
dosfstools
ed
ethtool
file
finalrd
fonts-ubuntu-console
friendly-recovery
ftp
fwupd-signed
gawk
gettext-base
git-man
git
hdparm
htop
info
initramfs-tools-bin
initramfs-tools-core
initramfs-tools
install-info
iptables
iputils-tracepath
irqbalance
klibc-utils
kpartx
landscape-common
libaio1
libarchive13
libatasmart4
libbinutils
libblockdev-crypto2
libblockdev-fs2
libblockdev-loop2
libblockdev-part-err2
libblockdev-part2
libblockdev-swap2
libblockdev-utils2
libblockdev2
libctf-nobfd0
libctf0
libcurl4
libdevmapper-event1.02.1
libdrm-common
libdrm2
libefiboot1
libefivar1
liberror-perl
libevent-core-2.1-7
libflashrom1
libfreetype6
libftdi1-2
libfwupd2
libfwupdplugin5
libgcab-1.0-0
libgdbm-compat4
libgdbm6
libgpgme11
libgudev-1.0-0
libgusb2
libinih1
libintl-perl
libintl-xs-perl
libip6tc2
libisns0
libjansson4
libjcat1
libjson-glib-1.0-0
libjson-glib-1.0-common
libklibc
liblmdb0
liblvm2cmd2.03
liblzo2-2
libmagic-mgc
libmagic1
libmaxminddb0
libmbim-glib4
libmbim-proxy
libmm-glib0
libmodule-find-perl
libmodule-scandeps-perl
libmpfr6
libmspack0
libnetfilter-conntrack3
libnfnetlink0
libnftables1
libnftnl11
libnl-3-200
libnl-genl-3-200
libnspr4
libnss3
libntfs-3g89
libnuma1
libopeniscsiusr
libparted-fs-resize0
libparted2
libpcap0.8
libpci3
libperl5.34
libpipeline1
libplymouth5
libpng16-16
libproc-processtable-perl
libqmi-glib5
libqmi-proxy
libsgutils2-2
libsigsegv2
libsmbios-c2
libsort-naturally-perl
libtcl8.6
libterm-readkey-perl
libtss2-esys-3.0.2-0
libtss2-mu0
libtss2-sys1
libtss2-tcti-cmd0
libtss2-tcti-device0
libtss2-tcti-mssim0
libtss2-tcti-swtpm0
libudisks2-0
liburcu8
libusb-1.0-0
libutempter0
libuv1
libvolume-key1
libwrap0
libxmlsec1-openssl
libxmlsec1
libxslt1.1
linux-base
lshw
lsof
lvm2
lxd-agent-loader
man-db
manpages
mdadm
motd-news-config
mtr-tiny
multipath-tools
nano
ncurses-term
needrestart
nftables
ntfs-3g
open-iscsi
open-vm-tools
openssh-server
openssh-sftp-server
overlayroot
parted
pastebinit
patch
pci.ids
pciutils
perl-modules-5.34
perl
plymouth-theme-ubuntu-text
plymouth
pollinate
powermgmt-base
psmisc
python3-apport
python3-automat
python3-bcrypt
python3-click
python3-colorama
python3-commandnotfound
python3-constantly
python3-debian
python3-distupgrade
python3-gdbm
python3-hamcrest
python3-hyperlink
python3-incremental
python3-magic
python3-newt
python3-openssl
python3-pexpect
python3-problem-report
python3-ptyprocess
python3-pyasn1-modules
python3-pyasn1
python3-service-identity
python3-systemd
python3-twisted
python3-update-manager
python3-zope.interface
rsync
run-one
sbsigntool
screen
secureboot-db
sg3-utils-udev
sg3-utils
snapd
sosreport
squashfs-tools
ssh-import-id
strace
tcl8.6
tcl
tcpdump
telnet
thin-provisioning-tools
time
tmux
tnftp
tpm-udev
ubuntu-release-upgrader-core
ubuntu-server
ubuntu-standard
ufw
update-manager-core
update-notifier-common
usb-modeswitch-data
usb-modeswitch
usb.ids
usbutils
uuid-runtime
wget
xfsprogs
zerofree
zstd
2 Likes