docker-compose run --rm在命令运行后不退出容器

时间:2017-01-27 00:48:39

标签: node.js docker docker-compose

docker-compose版本1.8.0。容器链接到另一个容器。我不确定这是否与容器为何不退出有关

mongodb:
  image: 'mongo:3.2'
  ports:
    - '27017:27017'
  environment:
    - AUTH=no

test:
  image: node:6.3.1
  command: node tests/ref-api.js
  working_dir: /opt/runapp
  volumes:
    - ./:/opt/runapp
    - ../webapp/server:/opt/runapp/node_modules/server
    - ../webapp/package/node_modules:/opt/runapp/node_modules/server/node_modules
  links:
    - mongodb

0 个答案:

没有答案