-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 649 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Makefile with commands for quick testing and management of the containers
# If you came for deployment containers, this file won't be of use for you
help::
@echo Usage: make [command]
@echo Commands:
@echo help - show this help message
@echo clean - clear all untracked files
@echo ccon - clear all containers
@echo cimg - clear all images
@echo cvol - clear all volumes
# Clear all untracked files
clean::
git clean -fX
# Clear all containers
ccon::
docker rm -f $(shell docker ps -a -q)
# Clear all images
cimg::
docker rmi -f $(shell docker images -a -q)
# Clear all volumes
cvol::
docker volume rm $(shell docker volume ls -q)