【发布时间】:2018-09-21 00:05:38
【问题描述】:
我有以下目录结构
.
|_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.
如何保留相对于被调用脚本位置的相对路径?
【问题讨论】:
标签: linux bash shell unix docker