在git bash中克隆wappalyzer存储库并运行命令之后$ git clone https://github.com/<your_github_username>/Wappalyzer.git$ cd Wappalyzer$ ./run links
在命令./run links
之后,错误是vipul rao@Rao MINGW64 ~/Documents/GitHub/wappalyzer$ ./run linksC:\Program Files\Docker Toolbox\docker.exe: invalid reference format: repository name must be lowercase.See 'C:\Program Files\Docker Toolbox\docker.exe run --help'.C:\Program Files\Docker Toolbox\docker.exe: invalid reference format: repository name must be lowercase.See 'C:\Program Files\Docker Toolbox\docker.exe run --help'.C:\Program Files\Docker Toolbox\docker.exe: invalid reference format: repository name must be lowercase.See 'C:\Program Files\Docker Toolbox\docker.exe run --help'.
最佳答案
AliasIO/Wappalyzer/blob/master/run
脚本应该在linux session 中运行,而不是Windows mingw Git bash。
参见this issue作为类似示例:
docker run -it -v "C:/Users/rburton/code/Docker/R:/home/docker".ToLower() -w /home/docker -u docker --rm /usr/bin/bash
在您的情况下,请在运行脚本中更改docker命令,以使用
/c/my/path/in/lowercase
语法对您的本地卷路径进行小写硬编码(以进行测试)。在这种情况下,修改run script以回显docker命令
cmd="docker run --rm -v "$(pwd):/opt/wappalyzer" -it wappalyzer/dev"
echo "${cmd}"
然后,当您看到显示的字符串中包含实际路径时:
docker run --rm -v "/C/Users...:/opt/wapppalyzer" -it wappalyzer/dev"
为了测试,请在脚本中添加相同的小写路径:
cmd="docker run --rm -v "$(pwd):/opt/wappalyzer" -it wappalyzer/dev"
cmd="docker run --rm -v "/c/users/...:/opt/wappalyzer" -it wappalyzer/dev"
# that second cld= will override the first
# use the path displayed by the echo, but in lowercase: /c/users/..., not /C/Users/...
echo "${cmd}"
关于bash - Docker错误C:\Program Files\Docker Toolbox\docker.exe:无效的引用格式:存储库名称必须为小写,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48576308/