mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Don’t stop daemon on migration hard failure
Also changes missing storage layer for container
RWLayer to a soft failure.
Fixes #20147
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 2798d7a6a6)
			
			
This commit is contained in:
		
							parent
							
								
									50a498ea1c
								
							
						
					
					
						commit
						55080fc03b
					
				
					 3 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -282,7 +282,8 @@ func migrateContainers(root string, ls graphIDMounter, is image.Store, imageMapp
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		if err := ls.CreateRWLayerByGraphID(id, id, img.RootFS.ChainID()); err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
			logrus.Errorf("migrate container error: %v", err)
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		logrus.Infof("migrated container %s to point to %s", id, imageID)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue