From 39135eb4b882144f26c9a54678172631b191dd7e Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Wed, 26 Apr 2017 08:42:39 -0500 Subject: [PATCH] Remove services containers dont need by default Ubuntu Xenial adds several services to its base image that we don't need by default. These packages start services and are being started on all containers we run. This consuming resources and is making our base images a little larger than they need to be. This change purges those packages which removes the services. Change-Id: I26ed9e26e5b0812ffdd198d9838f7aacefead3a1 Signed-off-by: Kevin Carter --- vars/ubuntu-16.04.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/vars/ubuntu-16.04.yml b/vars/ubuntu-16.04.yml index 03a23f9e..0160c41a 100644 --- a/vars/ubuntu-16.04.yml +++ b/vars/ubuntu-16.04.yml @@ -66,6 +66,7 @@ lxc_cache_map: apt-key add /root/repo.keys rm /root/repo.keys export DEBIAN_FRONTEND=noninteractive + apt-get remove -y --purge snap* lxc* lxd* || true apt-get update apt-get install -y {{ lxc_cache_install_debconf }} {{ lxc_cache_distro_packages | join(' ') }} apt-get upgrade -y {{ lxc_cache_install_debconf }}