We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8fcce1 commit c394232Copy full SHA for c394232
run.sh
@@ -38,6 +38,21 @@ stop_services() {
38
docker compose down || true
39
}
40
41
+cleanup_docker() {
42
+ print_step "0.5. 사용하지 않는 Docker 리소스 정리"
43
+
44
+ # 중지된 컨테이너 제거
45
+ docker container prune -f
46
47
+ # dangling 이미지 제거 (태그가 없는 이미지)
48
+ docker image prune -f
49
50
+ # 사용하지 않는 네트워크 제거
51
+ docker network prune -f
52
53
+ echo -e "${GREEN}Docker 정리 완료${NC}"
54
+}
55
56
# 이미지 업데이트
57
update_images() {
58
print_step "1. 외부 이미지 업데이트 (fe, nginx)..."
@@ -62,6 +77,7 @@ main() {
62
77
63
78
check_docker
64
79
stop_services
80
+ cleanup_docker
65
81
update_images
66
82
build_api
67
83
start_services
0 commit comments