From 4d3bf6099544152b815f4e9c46e6b4610a8a537b Mon Sep 17 00:00:00 2001 From: Julien Leduc <julien.leduc@cern.ch> Date: Tue, 27 Jun 2017 00:53:23 +0200 Subject: [PATCH] Adding instructions to clean docker images --- continuousintegration/buildtree_runner/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/continuousintegration/buildtree_runner/README.md b/continuousintegration/buildtree_runner/README.md index 428b6e0197..45456d4d48 100644 --- a/continuousintegration/buildtree_runner/README.md +++ b/continuousintegration/buildtree_runner/README.md @@ -55,6 +55,11 @@ cd ~/CTA/continuousintegration/buildtree_runner This image also contains embedded scripts from the CTA tree. As the build is 2 stage, the embedding of scripts can be run separately, saving the time to install the RPMs. +When updating image content, be careful that some layers can be cached event if the content changed (for example an `ADD` layer may not be updated in the new image...). To make sure everything is clean, you need to remove all cached layers from `docker`: +``` +docker rmi $(docker images -a | tail -n+1 | awk '{print $3}') +``` + ### Preparing the environment (MHVTL, kubernetes volumes...) MHVTL should then be setup by running: -- GitLab