大佬们,有没有在 Docker 跑过记忆神器 AnkiServer 的经验?首次在 docker 跑,运行失败,虚心求教。 我是 Docker 新手,不是很懂 docker 的机制,麻烦大佬指点。谢谢
$ sudo docker run -it --name AnkiServer -p 27701:27701 -v /volume1/anki:/anki lertsenem/anki-server
# 输入以下日志
Missing 'production.ini' in anki root dir: adding...
cp: can't stat '/anki/production.ini': Permission denied
Missing 'collections' in anki root dir: adding...
cp: can't stat '/anki/collections': Permission denied
Missing 'auth.db' in anki root dir: adding...
cp: can't stat '/anki/auth.db': Permission denied
Traceback (most recent call last):
File "/usr/bin/paster", line 11, in <module>
sys.exit(run())
File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
exit_code = runner.run(args)
File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
result = self.command()
File "/usr/lib/python2.7/site-packages/paste/script/serve.py", line 282, in command
relative_to=base, global_conf=vars)
File "/usr/lib/python2.7/site-packages/paste/script/serve.py", line 324, in loadserver
relative_to=relative_to, **kw)
File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 255, in loadserver
return loadobj(SERVER, uri, name=name, **kw)
File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
global_conf=global_conf)
File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 317, in _loadconfig
loader = ConfigLoader(path)
File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 393, in __init__
with open(filename) as f:
IOError: [Errno 13] Permission denied: '/anki/production.ini'
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.