docker: “build” requires 1 argument. See 'docker build --help'

前端 未结 14 2086
太阳男子
太阳男子 2020-11-28 02:21

Trying to follow the instructions for building a docker image from the docker website.

https://docs.docker.com/examples/running_redis_service/

this is the er

14条回答
  •  时光说笑
    2020-11-28 02:25

    In case anyone is running into this problem when trying to tag -t the image and also build it from a file that is NOT named Dockerfile (i.e. not using simply the . path), you can do it like this:

    docker build -t my_image -f my_dockerfile .

    Notice that docker expects a directory as the parameter and the filename as an option.

提交回复
热议问题