Skip to content

Commit

Permalink
Makefile: fixup the clean target
Browse files Browse the repository at this point in the history
This just pruned stopped containers and dangling images before removing
the built container. Use the official commands for these operations.

Signed-off-by: Randolph Sapp <[email protected]>
  • Loading branch information
StaticRocket committed Mar 10, 2024
1 parent 2ea360f commit 750b693
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ all:

clean:
docker container prune; \
docker image ls|grep none|sed -e "s/\s\s*/ /g"|cut -d ' ' -f3|xargs docker rmi ${IMAGE_TOBUILD}
docker image prune -f; \
docker rmi ${IMAGE_TOBUILD}

deploy:
docker push ${REPO}:${IMAGE_TOBUILD}

0 comments on commit 750b693

Please sign in to comment.