PS E:\ wamp64 \ www \ project> docker --version
Docker版本1.13.1,构建092cba3
文件: projet / docker-compose.yml
version: '2'
services:
queue:
build:
context: "./docker/queue/"
dockerfile: Dockerfile.dev
environment:
- "RABBITMQ_DEFAULT_USER=user"
- "RABBITMQ_DEFAULT_PASS=pass"
ports:
- "55672:5672"
- "15672"
volumes:
- "queue:/var/lib/rabbitmq:rw"
networks:
- "default"
maildev:
image: djfarrelly/maildev
ports:
- "1080:80"
- "1025:25"
networks:
- "default"
build:
build: ./docker/build/
volumes:
- ".:/home/docker:rw"
networks:
default: {}
volumes:
db: {}
queue: {}
文件: project / docker / queue / Dockerfile.dev
FROM rabbitmq:3.6
RUN rabbitmq-plugins enable rabbitmq_management
当我运行docker-compose时,给我这个
Building queue
ERROR: Cannot locate specified Dockerfile: Dockerfile.dev