我正在尝试使用Docker Compose(与Windows上的Docker Machine一起)来启动一组Docker容器。
我的docker-compose.yml:
version: '2'
services:
postgres:
build: ./postgres
environment:
- POSTGRES_PASSWORD=mysecretpassword
frontend:
build: ./frontend
ports:
- "4567:4567"
depends_on:
- postgres
backend:
build: ./backend
ports:
- "5000:5000"
depends_on:
- postgres
docker-compose build
运行成功。运行时,docker-compose start
我得到以下输出:
Starting postgres ... done
Starting frontend ... done
Starting backend ... done
ERROR: No containers to start
我确实确认docker容器未运行。如何启动容器?
docker-compose build
办?