我是按照官方网站上的教程做的。
https://docs.docker.com/get-started/part2/#build-the-app
我创建了一个名为dir的目录,并添加了Dockerfile、app.py和requirements.txt。当我试图构建它时,错误是-
root@ubuntu:~/dir# docker build -t hello
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | - [flags]
Build an image from a Dockerfile发布于 2018-06-06 11:57:18
您忘了提到上下文-root的位置。
#>docker build -t hello .加一个。如果Dockerfile位于当前位置,则结束时
https://stackoverflow.com/questions/50719726
复制相似问题