搬运工,撰写了多阳明confs没有开始
问题描述:
这是我的项目的树结构:搬运工,撰写了多阳明confs没有开始
.
├── backend-codebase
│ ├── app.js
│ ├── bin
│ │ └── www
│ ├── config.js
│ ├── db
│ │ ├── index.js
│ │ ├── repos
│ │ │ └── todos.js
│ │ └── sql
│ │ ├── index.js
│ │ └── todos
│ ├── dev
│ │ └── postgres
│ ├── index.js
│ ├── package.json
│ ├── public
│ │ ├── images
│ │ ├── javascripts
│ │ └── stylesheets
│ │ └── style.css
│ ├── routes
│ │ ├── api.js
│ │ ├── index.js
│ │ └── users.js
│ ├── scripts
│ │ ├── applyFixtures.js
│ │ ├── dev_entrypoint.sh
│ │ ├── fixtures.json
│ │ └── psql_dump.sql
│ ├── views
│ │ ├── api.ejs
│ │ ├── db.ejs
│ └── yarn.lock
├── dev
│ ├── Dockerfile-node
│ ├── Dockerfile-postgres
│ ├── development.sh
│ ├── docker-compose-common.yml
│ ├── docker-compose-dev.yml
│ └── postgres
│ ├── 12-12-2016_16_58_59.dump
...
我为了创建三个容器使用docker-compose
和orcherstrate一切: - 节点服务器 - 一个postgres数据库 - 一个数据容器的数据库
加,我创建了两个(和第三个是缺少)yaml文件下/dev/docker-compose-*.yml
。 docker-compose-dev
扩展了常见的一个,应该建立图像以及运行所有的图像。
为了开始的一切,我试图启动以下:
$ docker-compose up --file dev/docker-compose-common.yml --file dev/docker-compose-dev.yml
但我得到的是这样的输出:
Builds, (re)creates, starts, and attaches to containers for a service.
Unless they are already running, this command also starts any linked services.
The `docker-compose up` command aggregates the output of each container. When
the command exits, all cont
我真不明白我在做什么错了
答
傻,傻我。 它只是参数和命令之间的顺序颠倒。
另外,我可以删除第一个--file
参数,因为它是通过使用extends
yaml键引用的。
docker-compose -f dev/docker-compose-dev.yml up