3
我刚刚开始与docker玩耍。虽然从meteorhacks:meteord尝试方法1,我得到了如下因素误差尝试在使用流星的Docker中运行流星应用程序时出现错误:meteord
=> You don't have an meteor app to run in this image.
以下是我已经创造了基本计数器演示流星程序后进行。
docker build -t app .
Sending build context to Docker daemon 11.75 MB
Step 0 : FROM meteorhacks/meteord:base
---> 528baf8d4263
Step 1 : MAINTAINER MeteorHacks Pvt Ltd.
---> Running in 6d7e7eb6ebce
---> d69fefdbeb70
Removing intermediate container 6d7e7eb6ebce
Step 2 : ONBUILD copy ./ /app
---> Running in e68618104dfa
---> c253ae966ea1
Removing intermediate container e68618104dfa
Step 3 : ONBUILD run bash $METEORD_DIR/on_build.sh
---> Running in e51e557c2b05
---> a6a6a1be9147
Removing intermediate container e51e557c2b05
Successfully built a6a6a1be9147
然后(我已经发起了一个蒙戈容器暴露27017,抓住这是171.17.0.1内部IP地址)
docker run -d \
-e ROOT_URL=http://localhost:3000 \
-e MONGO_URL=mongodb://172.17.0.1:27017/ \
-e MONGO_OPLOG_URL=mongodb://172.17.0.1:27017/ \
-p 8080:80 \
app
我的错误我做到这一点,然后再运行时docker logs <container id>
有人可以指导我吗?
在此先感谢。
感谢您回到我的Vonc。 什么是指定/ bundle文件夹的最佳方式?我尝试使用URL形式的文件'file:/// home/USERNAME/app/bundle /并没有工作。 – Checko
@Checko正如我在回答中的链接(https://github.com/meteorhacks/meteord/blob/c3b448d43fa5d741a811c02600a95173b0c7d26d/README.md#21-from-the-web)中提到的,这个bundle url引用是tar.gz,它代表该应用程序的压缩存档。 – VonC
@VonC,我跟随链接abobe,它与/ bundle文件夹很好地工作,但没有捆绑url,应该从哪里来的url? – fay