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

前端 未结 14 2111
太阳男子
太阳男子 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:23

    My problem was the Dockerfile.txt needed to be converted to a Unix executable file. Once I did that that error went away.

    You may need to remove the .txt portion before doing this, but on a mac go to terminal and cd into the directory where your Dockerfile is and the type

    chmod +x "Dockerfile"
    

    And then it will convert your file to a Unix executable file which can then be executed by the Docker build command.

提交回复
热议问题