Skip to content

Commit 41f875b

Browse files
authored
Merge pull request #13 from nerro/readme-beautify
Beautify README.md
2 parents abd4e62 + eb86ed2 commit 41f875b

File tree

2 files changed

+86
-28
lines changed

2 files changed

+86
-28
lines changed

.gitignore

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,38 @@
1+
#############################
2+
# Compiled source #
3+
#############################
4+
dist/
5+
out/
16
/docker-machine-driver-vmware
27
/docker-machine-driver-vmware.exe
3-
/out
4-
dist/
8+
9+
#############################
10+
# Go files #
11+
#############################
12+
*.dll
13+
*.dylib
14+
*.exe
15+
*.exe~
16+
*.so
17+
18+
#############################
19+
# IDE generated files #
20+
#############################
21+
.idea/
22+
.vscode/
23+
*.iml
24+
25+
#############################
26+
# Logs and temp files #
27+
#############################
28+
*.log
29+
*.out
30+
*.tmp
31+
*~
32+
33+
#############################
34+
# OS generated files #
35+
#############################
36+
Thumbs.db
37+
.directory
38+
.DS_Store

README.md

Lines changed: 50 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
1-
# Docker machine vmware driver
1+
# Docker Machine VMware Driver
22

3-
This is a docker machine driver for VMware Fusion and Workstation.
3+
Create Docker machines locally on VMware [Fusion](https://www.vmware.com/products/fusion)
4+
and [Workstation](https://www.vmware.com/products/workstation).
45

5-
## How to consume this driver
6-
7-
### Prerequisite
8-
Make sure you have VMware Workstation 14 (Windows/Linux) or VMware Fusion 10 (MacOS)
9-
installed on your machine. Earlier versions of Workstation/Fusion might still work
6+
This driver requires VMware Workstation 14 (Windows/Linux) or VMware Fusion 10 (MacOS)
7+
to be installed on your host. Earlier versions of Workstation/Fusion might still work
108
with this driver, but it's not officially supported.
119

12-
### Install
13-
For MacOS and Linux, make sure `$GOPATH/bin` is part of your `$PATH` for MacOS and Linux.
10+
>
11+
> Docker machine has a builtin driver called `vmwarefusion`. The main difference between
12+
> those drivers is that `vmware` also works on VMware Workstation, while `vmwarefusion` only
13+
> works on VMware Fusion.
14+
>
15+
16+
17+
## Installation
18+
19+
### From a Release
20+
21+
The latest version of the `docker-machine-driver-vmware` binary is available on the
22+
[GithHub Releases](https://github.com/machine-drivers/docker-machine-driver-vmware/releases) page.
23+
Download the the binary that corresponds to your OS into a directory residing in your PATH.
24+
25+
### From Source
26+
27+
Make sure you have installed [Go](http://www.golang.org) and configured [GOPATH](http://golang.org/doc/code.html#GOPATH)
28+
properly. For MacOS and Linux, make sure `$GOPATH/bin` is part of your `$PATH` for MacOS and Linux.
1429
For Windows, make sure `%GOPATH%\bin` is included in `%PATH%`.
1530

1631
Run the following command:
@@ -19,29 +34,38 @@ Run the following command:
1934
go get -u github.com/machine-drivers/docker-machine-driver-vmware
2035
```
2136

22-
if the `PATH` is correctly setup, you will see this if you run the command
2337

24-
```shell
25-
$ docker-machine-driver-vmware
26-
This is a Docker Machine plugin binary.
27-
Plugin binaries are not intended to be invoked directly.
28-
Please use this plugin through the main 'docker-machine' binary.
29-
(API version: 1)
30-
```
31-
32-
### Usage
33-
The driver can be consumed by `docker-machine`, or potentially other tools that are
34-
compatible to docker machine drivers like `minikube` (not supported yet). For
35-
`docker-machine`, create a docker machine is simply a command like this:
38+
## Usage
3639

3740
```shell
3841
$ docker-machine create --driver=vmware default
3942
```
4043

41-
## Difference between driver vmwarefusion
42-
Docker machine has a builtin driver called `vmwarefusion`. The main difference between
43-
those drivers is that `vmware` also works on VMware Workstation, while `vmwarefusion` only
44-
works on VMware Fusion.
44+
45+
## Options
46+
47+
- `--vmware-boot2docker-url`: URL for boot2docker image
48+
- `--vmware-configdrive-url`: URL for cloud-init configdrive
49+
- `--vmware-cpu-count`: Number of CPUs for the machine (-1 to use the number of CPUs available)
50+
- `--vmware-disk-size`: Size of disk for host VM (in MB)
51+
- `--vmware-memory-size`: Size of memory for host VM (in MB)
52+
- `--vmware-no-share`: Disable the mount of your home directory
53+
- `--vmware-ssh-password`: SSH password
54+
- `--vmware-ssh-user`: SSH user
55+
56+
#### Environment variables and default values
57+
58+
| CLI option | Environment variable | Default |
59+
|----------------------------|------------------------|--------------------------|
60+
| `--vmware-boot2docker-url` | VMWARE_BOOT2DOCKER_URL | *Latest boot2docker url* |
61+
| `--vmware-configdrive-url` | VMWARE_CONFIGDRIVE_URL | - |
62+
| `--vmware-cpu-count` | VMWARE_CPU_COUNT | `1` |
63+
| `--vmware-disk-size` | VMWARE_DISK_SIZE | `20000` |
64+
| `--vmware-memory-size` | VMWARE_MEMORY_SIZE | `1024` |
65+
| `--vmware-no-share` | VMWARE_NO_SHARE | - |
66+
| `--vmware-ssh-password` | VMWARE_SSH_PASSWORD | `tcuser` |
67+
| `--vmware-ssh-user` | VMWARE_SSH_USER | `docker` |
68+
4569

4670
## License
4771

0 commit comments

Comments
 (0)