我試圖將存儲驅動程序更改爲mac上的devicemapper。並按照Change docker storage driver on Mac OS X我如何將Docker存儲驅動程序更改爲mac上的devicemapper
中的步驟,但我得到了以下錯誤,我的docker for mac是最新版本。
$ docker-machine create --driver virtualbox --engine-storage-driver devicemapper test2
Running pre-create checks...
Creating machine...
(test2) Copying /Users/weiwang/.docker/machine/cache/boot2docker.iso to /Users/weiwang/.docker/machine/machines/test2/boot2docker.iso...
(test2) Creating VirtualBox VM...
(test2) Creating SSH key...
(test2) Starting the VM...
(test2) Check network to re-create if needed...
(test2) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.105:2376": read tcp 192.168.99.1:49168->192.168.99.105:2376: read: connection reset by peer
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.
感謝Menzo的方式,我能夠創造機器與覆蓋作爲存儲驅動器,但這並不能解決我的問題。我需要在容器內部運行服務,但該服務不支持aufs和覆蓋 – weiwang
@weiwang我對這個主題做了更多的研究並更新了我的答案。它肯定仍然可以使用devicemapper存儲驅動程序。 Docker只是不支持它的默認基本操作系統。 –
太棒了!謝謝(你的)信息。 – weiwang