尝试构build图像时,Docker错误
我一直在试图设置一个容器,按照这里的文档
当我尝试运行docker build -t friendlyhello .
命令在服务器上,控制台吐出一个错误声明:
"docker build" requires exactly 1 argument(s). See 'docker build --help'.
但是,这并没有提供任何信息来解决问题。
当我尝试在本地使用构buildDockerfile
$ MyMacBook:DockerDirectory docker build -f /Dockerfile .
我得到以下错误:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat .../Documents/DockerDirectory/Dockerfile: no such file or directory
有谁知道可能是什么原因造成的问题? Dockerfile
本身? 我使用的代码? 先谢谢你!