使用docker启动Titan数据库时出错

我想开始使用泰坦数据库,我已经遵循http://oren.github.io/blog/titan.html说明。 但是当我尝试在Docker中启动泰坦时,它给了我以下错误:

/opt/titan-0.5.4-hadoop2/run.sh: 2: /opt/titan-0.5.4-hadoop2/run.sh: : not found 

run.sh文件位于C:\ Users \ Modeso \泰坦,但我找不到在Docker中更改文件夹位置的方法。

有没有人遇到过这个问题或有解决办法吗?

我怀疑在这种情况下,“找不到”消息可能不是因为找不到该文件,而是因为文件中使用了错误的行结束符。 如果一个shell脚本使用Windows行尾,Linux会产生奇怪的错误,比如这个。

你有没有尝试从GitHub仓库build设? https://github.com/apobbati/titan-rexster

您可以通过该存储库build立一个图像;

 docker build -t titan-rexter github.com/apobbati/titan-rexster 

并运行它;