Skip to content

Instantly share code, notes, and snippets.

@dhb52
Created September 12, 2019 07:01
Show Gist options
  • Save dhb52/2f3e3d39c9a584d62a3e73e4224ce120 to your computer and use it in GitHub Desktop.
Save dhb52/2f3e3d39c9a584d62a3e73e4224ce120 to your computer and use it in GitHub Desktop.
docker-machine

问题

docker-machine create --driver virtualbox servm-1
Creating CA: /Users/username/.docker/machine/certs/ca.pem
Creating client certificate: /Users/username/.docker/machine/certs/cert.pem
Running pre-create checks...
(servm-1) Image cache directory does not exist, creating it at /Users/username/.docker/machine/cache...
(servm-1) No default Boot2Docker ISO found locally, downloading the latest release...
Error with pre-create check: "failure getting a version tag from the Github API response (are you getting rate limited by Github?)"

解决方案

我们可以google找到相应的解决方案Solution

# If seeing:
#     (dev) No default Boot2Docker ISO found locally, downloading the latest release...
#     Error with pre-create check: "failure getting a version tag from the Github API response (are you getting rate limited by Github?)"
# then:
curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v1.9.1/boot2docker.iso

Parallels Desktop driver

brew install docker-machine-parallels

Create a VM

docker-machine create --driver=parallels prl-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment