mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-25 20:29:56 +00:00
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:
@@ -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 && \
|
||||
|
Reference in New Issue
Block a user