mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-04 20:28:05 +00:00
kernels: Clean after creating an image
Remove the image and the intermediate images. Otherwise, especially for the initial runs, the disk fills up quickly. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
@@ -40,5 +40,8 @@ for URL in $URLS; do
|
||||
docker build -t ${REPO}:${VERSION} -f Dockerfile.rpm --no-cache \
|
||||
--build-arg RPM_URLS="${RPM_URLS}" . &&
|
||||
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
||||
|
||||
docker rmi ${REPO}:${VERSION}
|
||||
docker system prune -f
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user