Categorygithub.com/zarenner/docker-machine-driver-vmware
repositorypackage
0.1.1
Repository: https://github.com/zarenner/docker-machine-driver-vmware.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Docker Machine VMware Driver

Create Docker machines locally on VMware Fusion and Workstation.

This driver requires VMware Workstation 14 (Windows/Linux) or VMware Fusion 10 (MacOS) to be installed on your host. Earlier versions of Workstation/Fusion might still work with this driver, but it's not officially supported.

Docker machine has a builtin driver called vmwarefusion. The main difference between those drivers is that vmware also works on VMware Workstation, while vmwarefusion only works on VMware Fusion.

Installation

From a Release

The latest version of the docker-machine-driver-vmware binary is available on the GithHub Releases page. Download the the binary that corresponds to your OS into a directory residing in your PATH.

From Source

Make sure you have installed Go and configured GOPATH properly. For MacOS and Linux, make sure $GOPATH/bin is part of your $PATH for MacOS and Linux. For Windows, make sure %GOPATH%\bin is included in %PATH%.

Run the following command:

go get -u github.com/machine-drivers/docker-machine-driver-vmware

Usage

$ docker-machine create --driver=vmware default

Options

  • --vmware-boot2docker-url: URL for boot2docker image
  • --vmware-configdrive-url: URL for cloud-init configdrive
  • --vmware-cpu-count: Number of CPUs for the machine (-1 to use the number of CPUs available)
  • --vmware-disk-size: Size of disk for host VM (in MB)
  • --vmware-memory-size: Size of memory for host VM (in MB)
  • --vmware-no-share: Disable the mount of your home directory
  • --vmware-ssh-password: SSH password
  • --vmware-ssh-user: SSH user

Environment variables and default values

CLI optionEnvironment variableDefault
--vmware-boot2docker-urlVMWARE_BOOT2DOCKER_URLLatest boot2docker url
--vmware-configdrive-urlVMWARE_CONFIGDRIVE_URL-
--vmware-cpu-countVMWARE_CPU_COUNT1
--vmware-disk-sizeVMWARE_DISK_SIZE20000
--vmware-memory-sizeVMWARE_MEMORY_SIZE1024
--vmware-no-shareVMWARE_NO_SHARE-
--vmware-ssh-passwordVMWARE_SSH_PASSWORDtcuser
--vmware-ssh-userVMWARE_SSH_USERdocker

License

It's under the Apache 2 license.