Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Parallels driver for Docker Machinehttps://github.com/docker/machine

License

NotificationsYou must be signed in to change notification settings

Parallels/docker-machine-parallels

Repository files navigation

This is a plugin forDocker Machine allowingto create Docker hosts locally onParallels Desktop for Mac

Requirements

Attention! This will not work on the new Apple Silicon Macs.

Installation

Install viaMacPorts:

sudo port install docker-machine-parallels

Install viaHomebrew:

brew install docker-machine-parallels

To install this plugin manually, download the binarydocker-machine-driver-parallelsand make it available by$PATH, for example by putting it to/usr/local/bin/:

curl -L https://github.com/Parallels/docker-machine-parallels/releases/download/v2.0.1/docker-machine-driver-parallels > /usr/local/bin/docker-machine-driver-parallelschmod +x /usr/local/bin/docker-machine-driver-parallels

The latest version ofdocker-machine-driver-parallels binary is available onthe"Releases" page.

Usage

Official documentation for Docker Machineis available here.

To create a Parallels Desktop virtual machine for Docker purposes just run thiscommand:

docker-machine create --driver=parallels prl-dev

Available options:

  • --parallels-boot2docker-url: The URL of the boot2docker image.
  • --parallels-disk-size: Size of disk for the host VM (in MB).
  • --parallels-memory: Size of memory for the host VM (in MB).
  • --parallels-cpu-count: Number of CPUs to use to create the VM (-1 to use the number of CPUs available).
  • --parallels-video-size: Size of video memory for host (in MB).
  • --parallels-share-folder: Path to the directory which should be shared with the host VM. Could be specified multiple times, once per each directory.
  • --parallels-no-share: Disable the sharing of any directory.
  • --parallels-nested-virtualization: Enable nested virtualization.

The--parallels-boot2docker-url flag takes a few different forms. Bydefault, if no value is specified for this flag, Machine will check locally fora boot2docker ISO. If one is found, that will be used as the ISO for thecreated machine. If one is not found, the latest ISO release available onboot2docker/boot2docker will bedownloaded and stored locally for future use.

This is the default behavior (when--parallels-boot2docker-url=""), but theoption also supports specifying ISOs by thehttp:// andfile:// protocols.

Environment variables and default values:

CLI optionEnvironment variableDefault
--parallels-boot2docker-urlPARALLELS_BOOT2DOCKER_URLLatest boot2docker url
--parallels-cpu-countPARALLELS_CPU_COUNT1
--parallels-disk-sizePARALLELS_DISK_SIZE20000
--parallels-memoryPARALLELS_MEMORY_SIZE1024
--parallels-video-sizePARALLELS_VIDEO_SIZE64
--parallels-share-folder-/Users
--parallels-no-share-false
--parallels-nested-virtualization-false

Development

Build from Source

If you wish to work on Parallels Driver for Docker machine, you'll first needGo installed (version 1.14+ is required).Make sure Go is properly installed, including setting up aGOPATH.

Run these commands to build the plugin binary:

go get -d github.com/Parallels/docker-machine-parallelscd$GOPATH/src/github.com/Parallels/docker-machine-parallelsmake build

After the build is complete,bin/docker-machine-driver-parallels binary willbe created. If you want to copy it to the${GOPATH}/bin/, runmake install.

Managing Dependencies

When you make a fresh copy of the repo, all the dependencies are invendor/ directory for the build to work.This project usesgolang/dep as dependency management tool.Please refer todep documentation for further details.

Acceptance Tests

We useBats for acceptance testing, so,install it first.

You also need to build the plugin binary by callingmake build.

Then you can run acceptance tests using this command:

make test-acceptance

Acceptance tests will invoke the generaldocker-machine binary available by$PATH. If you want to specify it explicitly, just setMACHINE_BINARY env variable:

MACHINE_BINARY=/path/to/docker-machine make test-acceptance

Authors


[8]ページ先頭

©2009-2025 Movatter.jp