Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 237b9dd

Browse files
author
Isaac Boehman
committed
Adds basevmdk config directive
Docker-DCO-1.1-Signed-off-by: Isaac Boehman <admin@yacn.pw> (github: yacn)
1 parent d88b216 commit 237b9dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var B2D struct {
2828
VM string // virtual machine name
2929
Dir string // boot2docker directory
3030
ISO string // boot2docker ISO image path
31+
VMDK string // base VMDK to use as persistent disk
3132
DiskSize uint // VM disk image size (MB)
3233
Memory uint // VM memory size (MB)
3334

@@ -106,6 +107,7 @@ func config() (*flag.FlagSet, error) {
106107
flags.StringVar(&B2D.VM, "vm", "boot2docker-vm", "virtual machine name.")
107108
flags.StringVarP(&B2D.Dir, "dir", "d", dir, "boot2docker config directory.")
108109
flags.StringVar(&B2D.ISO, "iso", filepath.Join(dir, "boot2docker.iso"), "path to boot2docker ISO image.")
110+
flags.StringVar(&B2D.VMDK, "basevmdk", "", "Path to VMDK to use as base for persistent partition")
109111
vbm := "VBoxManage"
110112
if p := os.Getenv("VBOX_INSTALL_PATH"); p != "" && runtime.GOOS == "windows" {
111113
vbm = filepath.Join(p, "VBoxManage.exe")

0 commit comments

Comments
 (0)