I have the following directory structure
.
|_build.sh
|_dir
|_build.sh
|_Dockerfile
这是上一级 build.sh 的内容。
#!/bin/bash
./dir/build.sh
这里是底层 build.sh 的内容。
#!/bin/bash
docker build -t test .
然而,当我运行上级build.sh时,出现以下错误。
unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFi
leAttributesEx C:\Dockerfile: The system cannot find the fil
e specified.
如何保留相对路径与调用脚本的位置相关?