Add cron job to prune old images
This commit is contained in:
		
					parent
					
						
							
								f184ad220b
							
						
					
				
			
			
				commit
				
					
						d526e9fdfa
					
				
			
		
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -111,3 +111,11 @@ | |||
|     minute: "0" | ||||
|     hour: "5" | ||||
|     job: "cd /ansible_docker_compose; docker compose pull && docker compose up -d" | ||||
| 
 | ||||
| - name: Install automatic cleanup cron job | ||||
|   become: true | ||||
|   ansible.builtin.cron: | ||||
|     name: 'docker compose auto update' | ||||
|     minute: "23" | ||||
|     hour: "4" | ||||
|     job: "docker system prune -a -f" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue