images: Removes containers after they've run

Not all instances of docker run has the --rm argument, which means that they'll
persist after they've finished. This can cause storage to remain occupied needlessly.
This commit is contained in:
Claudiu Belu
2021-02-05 10:07:26 +00:00
parent 1f6fe21425
commit 41cdd40a2e
3 changed files with 7 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ container: .container-${OS}-$(ARCH)
orphan: bin/orphan-linux-$(ARCH)
bin/orphan-linux-$(ARCH): linux/orphan.c
mkdir -p bin
docker run -u $$(id -u):$$(id -g) -v $$(pwd):/build \
docker run --rm -u $$(id -u):$$(id -g) -v $$(pwd):/build \
$(KUBE_CROSS_IMAGE):$(KUBE_CROSS_VERSION) \
/bin/bash -c "\
cd /build && \