"docker-compose build" 在我指定文件时显示帮助文本

"docker-compose build" is showing me help text when I specify a file

当我在构建过程中指定一个撰写文件时:

docker-compose build -f compose-production.yml

图像没有构建,而是显示了帮助文本:

$ docker-compose build -f compose-production.yml 
Build or rebuild services.

Services are built once and then tagged as `project_service`,
e.g. `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

的选项