无法评估 Dockerfile 路径中的符号链接:lstat <path> 没有这样的文件或目录
unable to evaluate symlinks in Dockerfile path: lstat <path> no such file or directory
我正在尝试 运行 tacotron2 on docker
within Ubuntu WSL2 (v.20.04)
on Win10 2004
build。 Docker 已安装并且 运行ning 我可以 运行 hello world
成功。
(有个nearly identical question here,但是没人回答。)
当我尝试 运行 docker build -t tacotron-2_image docker/
时出现错误:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/nate/docker/Dockerfile: no such file or directory
然后我在 bash 中导航到 docker 的安装位置 (/var/lib/docker
) 并尝试在那里 运行 它,但得到了同样的错误。在这两种情况下,我都创建了一个 docker
目录,但在所有情况下都会出现该错误。
我怎样才能让它工作?
作为 mentioned here, the error might have nothing to do with "symlinks", and everything with the lack of Dockerfile
, which should be in the Tacotron-2/docker
文件夹。
docker build
确实提到:
The docker build command builds Docker images from a Dockerfile and a “context”.
A build’s context is the set of files located in the specified PATH
or URL.
在您的情况下,docker build -t tacotron-2_image docker/
应该在您克隆 Rayhane-mamah/Tacotron-2
存储库的路径中执行。
可以肯定的是,您可以指定 Dockerfile
,但应该不需要:
docker build -t tacotron-2_image -f docker/Dockerfile docker/
或:
cd
git clone https://github.com/Rayhane-mamah/Tacotron-2
cd Tacotron-2
cd docker
docker build -t tacotron-2_image .
I thought these commands I'm executing are for the purpose of installing it
要构建映像,您需要源(要克隆的存储库)。
对于像我这样由于符号链接而无法正常工作的其他人
just copy out your files out to a new directory that hasn't been symlink and build your image from there
如果您确认您的 Dockerfile 不是 dockerfile .Dockerfile 、DockerFile 或 dockerfile.txt .
我的 OS 基础是 ubuntu.
如果你的名字Dockerfile
是大写F
重命名
我正在尝试 运行 tacotron2 on docker
within Ubuntu WSL2 (v.20.04)
on Win10 2004
build。 Docker 已安装并且 运行ning 我可以 运行 hello world
成功。
(有个nearly identical question here,但是没人回答。)
当我尝试 运行 docker build -t tacotron-2_image docker/
时出现错误:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/nate/docker/Dockerfile: no such file or directory
然后我在 bash 中导航到 docker 的安装位置 (/var/lib/docker
) 并尝试在那里 运行 它,但得到了同样的错误。在这两种情况下,我都创建了一个 docker
目录,但在所有情况下都会出现该错误。
我怎样才能让它工作?
作为 mentioned here, the error might have nothing to do with "symlinks", and everything with the lack of Dockerfile
, which should be in the Tacotron-2/docker
文件夹。
docker build
确实提到:
The docker build command builds Docker images from a Dockerfile and a “context”.
A build’s context is the set of files located in the specifiedPATH
or URL.
在您的情况下,docker build -t tacotron-2_image docker/
应该在您克隆 Rayhane-mamah/Tacotron-2
存储库的路径中执行。
可以肯定的是,您可以指定 Dockerfile
,但应该不需要:
docker build -t tacotron-2_image -f docker/Dockerfile docker/
或:
cd
git clone https://github.com/Rayhane-mamah/Tacotron-2
cd Tacotron-2
cd docker
docker build -t tacotron-2_image .
I thought these commands I'm executing are for the purpose of installing it
要构建映像,您需要源(要克隆的存储库)。
对于像我这样由于符号链接而无法正常工作的其他人
just copy out your files out to a new directory that hasn't been symlink and build your image from there
如果您确认您的 Dockerfile 不是 dockerfile .Dockerfile 、DockerFile 或 dockerfile.txt .
我的 OS 基础是 ubuntu.
如果你的名字Dockerfile
是大写F
重命名