2017-02-07 4 views
5

मैं डोकर शुरू कर दिया और अब ट्यूटोरियल अनुसरण कर रही हूं, लेकिन सभी के लिए मुझे पता है मैं ओएस एक्स पर docker-machine आदेश नहीं चला सकतेओएस एक्स में "डॉकर-मशीन बनाने" कैसे चलाएं?

The documentation states है कि आप निम्न आदेश चला एक स्थानीय आभासी मशीन बनाने के लिए:

docker-machine create --driver virtualbox manager 

हालांकि, इस आदेश ओएस एक्स (11.6) में काम नहीं करता है, तो निम्न त्रुटि के साथ:

Running pre-create checks... 
Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path" 

मैं virtualbox स्थापित करने के लिए कोशिश की, हालांकि, another page clearly states आप इसे अपने स्थानीय मशीन पर स्थापित नहीं करना चाहिए कि:

VirtualBox prior to version 4.3.30 must NOT be installed (it is incompatible with Docker for Mac)

Note: If your system does not satisfy these requirements, you can install Docker Toolbox, which uses Oracle VirtualBox instead of HyperKit.

तो मैं केवल मैक के लिए डोकर स्थापित किया है और नहीं virtualbox। तो मैं यहाँ क्या याद कर रहा हूँ? The example page कहते हैं आप ओएस एक्स पर ट्यूटोरियल चला सकते हैं, तो मुझे आश्चर्य है कि मैं कैसे आगे बढ़ सकते हैं ...

You can follow along and run this example using Docker for Mac, Docker for Windows or Docker for Linux.

उत्तर

15

मैं आज एक ही मुद्दा था और VirtualBox के मैक के लिए डोकर स्थापित करने के बाद एक अतिरिक्त कदम के रूप में स्थापित करके इसका समाधान नहीं (मैंने brew cask install virtualbox के साथ ऐसा किया)

मुझे पहले अतिरिक्त इंस्टॉल करने की याद नहीं है, लेकिन हो सकता है कि पहले से ही वर्चुअलबॉक्स पहले से ही किसी अन्य टूल (जैसे वाग्रेंट) के कारण स्थापित हो। वैसे भी, इस Docker Machine दस्तावेज में समझाया गया है:

If you are using Docker for Mac

Docker for Mac uses HyperKit, a lightweight macOS virtualization solution built on top of the Hypervisor.framework in macOS 10.10 Yosemite and higher.

Currently, there is no docker-machine create driver for HyperKit, so you will use virtualbox driver to create local machines. (See the Docker Machine driver for Oracle VirtualBox.) Note that you can run both HyperKit and Oracle VirtualBox on the same system. To learn more, see Docker for Mac vs. Docker Toolbox.

  • Make sure you have the latest VirtualBox correctly installed on your system (either as part of an earlier Toolbox install, or manual install).
2

मैं एक ही मुद्दा था। उसी स्थान पर ;-) मेरे लिए xhyve ड्राइवर, https://github.com/zchee/docker-machine-driver-xhyve से उपलब्ध, काम किया। संक्षेप में: काढ़ा स्थापित डोकर-मशीन-चालक-xhyve

आपको एक सूचना कुछ लिंक मैन्युअल रूप से बनाया जा करने की जरूरत है मिलता है, इसलिए उन कॉपी और sudo chown जड़ निष्पादित करें: पहिया/usr/स्थानीय/opt/docker- मशीन-चालक-xhyve/bin/डोकर-मशीन-चालक-xhyve sudo chown जड़: पहिया/usr/स्थानीय/opt/डोकर-मशीन-चालक-xhyve/bin/डोकर-मशीन-चालक-xhyve

बनाएं : डॉकर-मशीन बनाएं - ड्रायवर xhyve प्रबंधक

वर्चुअलबॉक्स के बिना। मैं भी ओएस एक्स 10.11.6 का उपयोग कर रहा हूँ।