mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +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:
parent
f145a3cee7
commit
4defc9f134
@ -40,5 +40,8 @@ for URL in $URLS; do
|
|||||||
docker build -t ${REPO}:${VERSION} -f Dockerfile.rpm --no-cache \
|
docker build -t ${REPO}:${VERSION} -f Dockerfile.rpm --no-cache \
|
||||||
--build-arg RPM_URLS="${RPM_URLS}" . &&
|
--build-arg RPM_URLS="${RPM_URLS}" . &&
|
||||||
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
||||||
|
|
||||||
|
docker rmi ${REPO}:${VERSION}
|
||||||
|
docker system prune -f
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
@ -26,4 +26,7 @@ for KERN_DEB in $KERNELS; do
|
|||||||
docker build -t ${REPO}:${VERSION} -f Dockerfile.deb --no-cache \
|
docker build -t ${REPO}:${VERSION} -f Dockerfile.deb --no-cache \
|
||||||
--build-arg DEB_URLS="${URLS}" . &&
|
--build-arg DEB_URLS="${URLS}" . &&
|
||||||
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
||||||
|
|
||||||
|
docker rmi ${REPO}:${VERSION}
|
||||||
|
docker system prune -f
|
||||||
done
|
done
|
||||||
|
@ -51,4 +51,7 @@ for KDIR in $KDIRS; do
|
|||||||
fi
|
fi
|
||||||
build_image ${VERSION} ${KDIR} && \
|
build_image ${VERSION} ${KDIR} && \
|
||||||
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
||||||
|
|
||||||
|
docker rmi ${REPO}:${VERSION}
|
||||||
|
docker system prune -f
|
||||||
done
|
done
|
||||||
|
@ -35,4 +35,7 @@ for KERN_DEB in $KERNELS; do
|
|||||||
docker build -t ${REPO}:${VERSION} -f Dockerfile.deb --no-cache \
|
docker build -t ${REPO}:${VERSION} -f Dockerfile.deb --no-cache \
|
||||||
--build-arg DEB_URLS="${URLS}" . &&
|
--build-arg DEB_URLS="${URLS}" . &&
|
||||||
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
DOCKER_CONTENT_TRUST=1 docker push ${REPO}:${VERSION}
|
||||||
|
|
||||||
|
docker rmi ${REPO}:${VERSION}
|
||||||
|
docker system prune -f
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user