mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 23:55:44 +00:00 
			
		
		
		
	refactor: ignore containers that failed to get inspected in docker
This commit is contained in:
		@@ -101,7 +101,8 @@ func (docker *Docker) GetLabels(appId string) (types.Labels, error) {
 | 
			
		||||
 | 
			
		||||
		// Check if there was an error
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return types.Labels{}, err
 | 
			
		||||
			log.Warn().Str("id", container.ID).Err(err).Msg("Error inspecting container, skipping")
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Get the container name (for some reason it is /name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user