当我指定一个文件时,“docker-compose build”向我显示帮助文本

当我在构build期间指定撰写文件时:

docker-compose build -f compose-production.yml

图像没有build立,而是我显示帮助文本:

 $ docker-compose build -f compose-production.yml Build or rebuild services. Services are built once and then tagged as `project_service`, eg `composetest_db`. If you change a service's `Dockerfile` or the contents of its build directory, you can run `docker-compose build` to rebuild it. Usage: build [options] [SERVICE...] Options: --force-rm Always remove intermediate containers. --no-cache Do not use cache when building the image. --pull Always attempt to pull a newer version of the image. 

任何人都知道发生了什么事?

运行:

 docker-compose -f compose-production.yml build 

-fdocker-compose选项,不是用于命令build选项