mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user