尝试使用fig和docker获取开发环境设置,并且我不断收到“无效参数”错误。
$ fig up
Recreating website_db_1...
Recreating website_web_1...
invalid argument
Dockerfile通过fig和docker构建。
fig.yml
db:
image: "postgres:9.3"
ports:
- 5432
volumes:
- ./data:/var/lib/postgresql/data/
web:
build: .
command: bundle exec rails server
volumes:
- .:/usr/src/app/
ports:
- "3000:3000"
links:
- db
Dockerfile
FROM ruby:1.9.3-p547
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app
答案 0 :(得分:1)
我认为你有一些罕见的字符或有问题的编码。我已经运行了你的文件,并且从docker / fig方面看起来效果很好。我在fig up
:
Recreating fig_db_1...
Recreating fig_web_1...
Attaching to fig_db_1, fig_web_1
db_1 | LOG: database system was shut down at 2014-12-30 09:06:55 UTC
db_1 | LOG: database system is ready to accept connections
db_1 | LOG: autovacuum launcher started
web_1 | Could not locate Gemfile
fig_web_1 exited with code 10
Gracefully stopping... (press Ctrl+C again to force)
Stopping fig_db_1...
尝试复制并粘贴您放在此处的代码。我发现了无花果的类似问题,你必须处理缩进和格式。我希望这会有所帮助。
答案 1 :(得分:0)
TL; DR
关闭计算机然后再打开。
解决。