2015-08-23 270 views
1

我想上使用meteord基本映像我的Mac上運行的泊塢窗容器流星應用程序,但得到一個如何在mac上的docker中運行流星應用程序?

=> You don't have an meteor app to run in this image. 

錯誤消息時

$ docker run -it -e ROOT_URL=http://localhost -e MONGO_URL=mongodb://192.168.99.101:27017/meteor -v /Users/me/build/bundle -p 8080:80 meteorhacks/meteord:base 

我建流星束通過

$ meteor build --architecture=os.linux.x86_64 ./ 

我可以在mac上使用meteord嗎?

回答

4

正如您在base/scripts/run_app.sh#L3-L21中看到的那樣,當容器中沒有/bundle$BUNDLE_URL/build_app路徑時,彈出錯誤消息。

而且-v /Users/me/build/bundle是不夠的容器來聲明一個/bundle路徑:你需要map it (mount a host directory)

-v /Users/me/build/bundle:/bundle 

單獨-v /Users/me/build/bundle聲明瞭一個data volume,它沒有安裝從主機什麼。

相關問題