Daisuke
Contributor
- Joined
 - Jun 23, 2011
 
- Messages
 - 1,041
 
Where can I find the documentation for container, image and system pruning with 
Edit: I found the equivalent for first 2 commands, from prune.py. I believe that is the usage:
The only missing command is:
Thank you for letting me know.
	
		
			
		
		
	
			
			midclt? Basically, I want to replace the docker commands listed below, with a cron job:Code:
docker container prune -f docker image prune -af docker system prune -af --volumes
Edit: I found the equivalent for first 2 commands, from prune.py. I believe that is the usage:
Code:
midclt call container.prune '{"remove_stopped_containers": true, "remove_unused_images": true}'
The only missing command is:
Code:
docker system prune -af --volumes
Thank you for letting me know.
			
				Last edited: