docker挂载文件躺过的坑
Docker 實(shí)現(xiàn)掛載的三種方式
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused “exec: “-v”: executable file not found in $PATH”: unknown.
看著啟動(dòng)成功了,但查日志啟動(dòng)失敗
日志信息:
位置放錯(cuò)了,/bin/bash 后面應(yīng)該放啟動(dòng)的文件
啟動(dòng)成功:
正確命令參考:
docker run -it -p 11022:4666 -v /home/hzt/kg-engine-text-server/run.sh:/home/TextGrapher-master/run.sh -v /home/hzt/kg-engine-text-server/text_grapher_3.py:/home/TextGrapher-master/text_grapher_3.py -d --name=‘nlp_common_text_grapher1’ semantic_analysis:1.0 /bin/bash /home/TextGrapher-master/run.sh
總結(jié)
以上是生活随笔為你收集整理的docker挂载文件躺过的坑的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: NAACL 2019 | 怎样生成语言才
- 下一篇: 【NLP】Google BERT详解