Skip to content

Commit c425e7c

Browse files
authored
Merge pull request #446 from rhatdan/instructlab
Add prune target to cleanup wasted containers/storage
2 parents 261ccf8 + 3cc034b commit c425e7c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

training/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ help:
2525
@echo " - make cloud-intel"
2626
@echo " - make cloud-nvidia"
2727
@echo " - make cloud-vllm"
28+
@echo
29+
@echo "Make prune. This command will remove all buildah containers if left behind from podman build and then prune all unused container images. Usefull if you are running out of space."
30+
@echo
31+
@echo " - make prune"
2832

2933
#
3034
# Create instructlab AI container images
@@ -77,5 +81,14 @@ cloud-nvidia:
7781
.PHONY:
7882
cloud: cloud-amd cloud-intel cloud
7983

84+
#
85+
# We often see users running out of space. These commands are useful for freeing wasted space.
86+
# Note becarful to not run this target if a podman build is in progress.
87+
#
88+
.PHONY: prune
89+
prune:
90+
buildah rm --all
91+
podman image prune -f
92+
8093
clean:
8194
rm -rf build

0 commit comments

Comments
 (0)