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

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

    You need to add a dot, which means to use the Dockerfile in the local directory.

    For example:

    docker build -t mytag .

    It means you use the Dockerfile in the local directory, and if you use docker 1.5 you can specify a Dockerfile elsewhere. Extract from the help output from docker build:

    -f, --file="" Name of the Dockerfile(Default is 'Dockerfile' at context root)

提交回复
热议问题