1
0
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:
Christian von Stebut
2015-12-23 00:48:18 +01:00
parent acf2d1da4c
commit 1cd6a37343

View File

@@ -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
}