2016-01-05 70 views
3

我試圖讓Docker在我的Mac上本地運行一個容器,我一直在雲中工作。我做了碼頭提交/保存/加載查找。但是,當我在本地運行它後,我安裝搬運工工具箱如果我做docker info 我得到這個錯誤Docker工具箱無法分配內存

docker logs es-loaded-with-data 
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c5330000, 4207738880, 0) failed; error='Cannot allocate memory' (errno=12) 
Starting elasticsearch: # 
# There is insufficient memory for the Java Runtime Environment to continue. 
# Native memory allocation (mmap) failed to map 4207738880 bytes for committing reserved memory. 
# An error report file with more information is saved as: 
# //hs_err_pid16.log 

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c5330000, 4207738880, 0) failed; error='Cannot allocate memory' (errno=12) 
Starting elasticsearch: # 

然後我得到

總內存:1.956吉布

明確2 Gb是不夠的。我該如何增加容器才能運行?

回答

2

Mac OS上的Docker運行在具有docker-machine(或更老的boot2docker)的virtualbox VM中。我不確定docker-machine是否支持直接修改VM RAM,但你可以直接啓動VirtualBox.app並直接修改VM內存量。重新啓動VM等。

+0

哇,我搞砸了配置文件等,結果我可以使用GUI ...謝謝蔡司。有時候另一組眼睛有幫助 –