skip to Main Content
└─# 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


  1. The solution maybe:

    docker build -f <docker-file> .
    

    You missed the ., aka the context path.

    Login or Signup to reply.
  2. Use docker build --help and you’ll get the help text for the build command, which includes help for the -f option.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search