DinghyDocker Machine 封裝
Dinghy 致力于 OS X 上 Docker,包含電池在內(nèi)本地開發(fā)體驗(yàn)。基于 Docker Machine。
主要特性:
-
使用 NFS 而不是 Virtualbox/vmware 文件分享。中等大小的 Rails 應(yīng)用啟動(dòng)只要 5 秒鐘,vmware 文件分享需要 30 秒,virtualbox 文件分享需要 90 秒。
-
文件系統(tǒng)事件在安裝卷上運(yùn)行。在你的主機(jī)上編輯文件,可以立即在 guard/webpack/etc 看到修改。
-
易訪問,使用內(nèi)置 DNS 和 HTTP 代理訪問運(yùn)行的容器
最終 docker-machine 也許有很豐富的插件系統(tǒng),dinghy 可以作為 Docker-machine 的一個(gè)插件。dinghy 現(xiàn)在來說是 Docker Machine 的封裝,可以創(chuàng)建 VM,使用 launchd 來開啟各種服務(wù),比如 NFS 和 DNS。
CLI 使用
$ dinghy helpCommands: dinghy create # create the docker-machine VM dinghy destroy # stop and delete all traces of the VM dinghy halt # stop the VM and services dinghy help [COMMAND] # Describe available commands or one specific command dinghy ip # get the VM's IP address dinghy restart # restart the VM and services dinghy shellinit # returns env variables to set, should be run like $(dinghy shellinit) dinghy ssh [args...] # ssh to the VM dinghy ssh-config # print ssh configuration for the VM dinghy status # get VM and services status dinghy up # start the Docker VM and services dinghy upgrade # upgrade the boot2docker VM to the newest available dinghy version # display dinghy version
評(píng)論
圖片
表情
