From 8cda43a68aaebfe6a0ce9a55411bf4a225de5322 Mon Sep 17 00:00:00 2001 From: niusmallnan Date: Mon, 5 Feb 2018 17:43:39 +0800 Subject: [PATCH] Reduce the memory consumption at startup (#2247) Offline image is automatically loaded when the system boots. When the system memory is not large enough (such as 1G), will lead to kernel panic. --- Dockerfile.dapper | 3 ++- scripts/tar-images | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 5feb4209..7b063dea 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -35,7 +35,8 @@ RUN echo "Acquire::http { Proxy \"$APTPROXY\"; };" >> /etc/apt/apt.conf.d/01prox vim \ wget \ xorriso \ - telnet + xz-utils \ + telnet ########## Dapper Configuration ##################### diff --git a/scripts/tar-images b/scripts/tar-images index b0f84d2e..bddefbfb 100755 --- a/scripts/tar-images +++ b/scripts/tar-images @@ -13,5 +13,5 @@ for i in $IMAGES; do done echo "tar-images: docker save ${IMAGES} > build/images.tar" -docker save ${IMAGES} > build/images.tar +docker save ${IMAGES} | xz > build/images.tar echo "tar-images: DONE"