docker-machine在`DBG |创建中断填充零

时间:2016-01-11 20:52:05

标签: macos docker virtualbox docker-machine

我正在尝试在quickstart start.sh文件中创建默认计算机,但脚本挂起在Creating SSH key...。我已经在快速入门文件中跟踪了这一行。 Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh

$DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 --virtualbox-disk-size 204800 $VM

我卸载了所有东西(virtualbox,docker,docker-machine等)并重新安装了工具箱,并搜索了我能想到的解决方案。有什么想法吗?

我使用的是Mac OSX 10.11.2

❯ docker-machine create -d virtualbox --virtualbox-memory 2048 --virtualbox-disk-size 204800 default
Running pre-create checks...
Creating machine...
(default) Copying /Users/ian/.docker/machine/cache/boot2docker.iso to /Users/ian/.docker/machine/machines/default/boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
^C%
>>> elapsed time 3m18s

docker-machine create -d virtualbox test

相同 < - > --debug 与docker-machine --debug create -d virtualbox test

相同
❯ docker-machine --debug create -d virtualbox --virtualbox-memory 2048 --virtualbox-disk-size 204800 default       [10:39:11]
Docker Machine Version:  0.5.5, build
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver virtualbox
Plugin server listening at address 127.0.0.1:59530
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver virtualbox
Plugin server listening at address 127.0.0.1:59534
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(default) Calling .GetMachineName
(default) Calling .DriverName
(default) Calling .GetCreateFlags
(default) Calling .SetConfigFromFlags
Running pre-create checks...
(default) Calling .PreCreateCheck
(default) DBG | COMMAND: /usr/local/bin/VBoxManage --version
(default) DBG | STDOUT:
(default) DBG | {
(default) DBG | 5.0.12r104815
(default) DBG | }
(default) DBG | STDERR:
(default) DBG | {
(default) DBG | }
(default) DBG | local Boot2Docker ISO version:  v1.9.1
(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs
(default) DBG | STDOUT:
(default) DBG | {
(default) DBG | Name:            vboxnet0
(default) DBG | GUID:            786f6276-656e-4074-8000-0a0027000000
(default) DBG | DHCP:            Disabled
(default) DBG | IPAddress:       192.168.99.1
(default) DBG | NetworkMask:     255.255.255.0
(default) DBG | IPV6Address:
(default) DBG | IPV6NetworkMaskPrefixLength: 0
(default) DBG | HardwareAddress: 0a:00:27:00:00:00
(default) DBG | MediumType:      Ethernet
(default) DBG | Status:          Down
(default) DBG | VBoxNetworkName: HostInterfaceNetworking-vboxnet0
(default) DBG |
(default) DBG | Name:            vboxnet1
(default) DBG | GUID:            786f6276-656e-4174-8000-0a0027000001
(default) DBG | DHCP:            Disabled
(default) DBG | IPAddress:       192.168.50.1
(default) DBG | NetworkMask:     255.255.255.0
(default) DBG | IPV6Address:
(default) DBG | IPV6NetworkMaskPrefixLength: 0
(default) DBG | HardwareAddress: 0a:00:27:00:00:01
(default) DBG | MediumType:      Ethernet
(default) DBG | Status:          Down
(default) DBG | VBoxNetworkName: HostInterfaceNetworking-vboxnet1
(default) DBG |
(default) DBG | }
(default) DBG | STDERR:
(default) DBG | {
(default) DBG | }
(default) Calling .GetConfigRaw
Creating machine...
(default) Calling .Create
(default) DBG | local Boot2Docker ISO version:  v1.9.1
(default) Copying /Users/ian/.docker/machine/cache/boot2docker.iso to /Users/ian/.docker/machine/machines/default/boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) DBG | Creating disk image...
(default) DBG | Creating 204800 MB hard disk image...
(default) DBG | Writing magic tar header
(default) DBG | Writing SSH key tar header
(default) DBG | Calling inner createDiskImage
(default) DBG | &{/usr/local/bin/VBoxManage [/usr/local/bin/VBoxManage convertfromraw stdin /Users/ian/.docker/machine/machines/default/disk.vmdk 214748364800 --format VMDK] []     []     false [] [] [] [] }
(default) DBG | Starting command
(default) DBG | Copying to stdin
(default) DBG | Converting from raw image file="stdin" to file="/Users/ian/.docker/machine/machines/default/disk.vmdk"...
(default) DBG | Creating dynamic image with size 214748364800 bytes (204800MB)...
(default) DBG | Filling zeroes
^C%
>>> elapsed time 10m46s

1 个答案:

答案 0 :(得分:4)

Docker实际上并没有被破坏,它只是第一次使用EXTREMELY long to provision Virtual Box。对于2013年晚些时候使用SSD的MacBook Pro,第一次完成需要大约1个小时。

初始配置默认机器后,一切正常。