mirror of https://github.com/docker/docs.git
				
				
				
			close handle on destination after copying boot2docker.iso into vm folder - will otherwise keep hyper-v from starting vm
Signed-off-by: Christian von Stebut <christian@von.stebut.org>
This commit is contained in:
		
							parent
							
								
									acf2d1da4c
								
							
						
					
					
						commit
						1cd6a37343
					
				| 
						 | 
				
			
			@ -55,6 +55,8 @@ func CopyFile(src, dst string) error {
 | 
			
		|||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	defer out.Close()
 | 
			
		||||
 | 
			
		||||
	if _, err = io.Copy(out, in); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue