"docker build" requires exactly 1 argument.



  • Full Error: "docker build" requires exactly 1 argument.

    Command Executed:

    $ docker build -t sunshine/state -f Dockerfile
    "docker build" requires exactly 1 argument.
    See 'docker build --help'.
    
    Usage:  docker build [OPTIONS] PATH | URL | -
    
    Build an image from a Dockerfile
    

    Solution:
    Place a dot for current directory before the -f

    $ docker build -t sunshine/state . -f Dockerfile
    

Log in to reply
 

© Lightnetics 2024