Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit ea67468

Browse files
authored
feat: Added dev.prune to clean up dangling images, also prune on dev.reset (#816)
* feat: Added dev.prune to clean up dangling docker images / networks / etc, also prune on dev.reset
1 parent d3995bf commit ea67468

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ dev.clone.ssh: ## Clone service repos using SSH method to the parent directory.
204204
# Developer interface: Docker image management.
205205
########################################################################################
206206

207+
dev.prune: ## Prune dangling docker images, containers, and networks. Useful when you get the 'no space left on device' error
208+
docker system prune -f
209+
# See also: https://edx.readthedocs.io/projects/open-edx-devstack/en/latest/troubleshoot_general_tips.html#no-space-left-on-device
210+
207211
dev.pull.without-deps: _expects-service-list.dev.pull.without-deps
208212

209213
dev.pull.without-deps.%: ## Pull latest Docker images for specific services.
@@ -509,7 +513,7 @@ dev.static.%: ## Rebuild static assets for the specified service's container.
509513
########################################################################################
510514

511515

512-
dev.reset: dev.down dev.reset-repos dev.pull.large-and-slow dev.up.large-and-slow dev.static dev.migrate ## Attempt to reset the local devstack to the master working state without destroying data.
516+
dev.reset: dev.down dev.reset-repos dev.prune dev.pull.large-and-slow dev.up.large-and-slow dev.static dev.migrate ## Attempt to reset the local devstack to the master working state without destroying data.
513517

514518
dev.destroy: ## Irreversibly remove all devstack-related containers, networks, and volumes.
515519
$(WINPTY) bash ./destroy.sh

0 commit comments

Comments
 (0)