└─# docker build -f --help
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
How I can solve this error.
└─# docker build -f --help
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
How I can solve this error.
2
Answers
The solution maybe:
You missed the
.
, aka the context path.Use
docker build --help
and you’ll get the help text for the build command, which includes help for the-f
option.