stack.yaml
的示例Docker configuration部分给出了:
# Location of database used to track image usage, which `stack docker cleanup`
# uses to determine which images should be kept. On shared systems, it may
# be useful to override this in the global configuration file so that
# all users share a single database.
database-path: "~/.stack/docker.db"
但是当我把它放在stack.yaml
的新项目和stack setup
时,我得到了:
Aeson exception:
Error in $.docker['database-path']: failed to parse field 'docker': failed to parse field 'database-path': InvalidAbsFile "~/.stack/docker.db"
See http://docs.haskellstack.org/en/stable/yaml_configuration/
这是only reference I could find到database-path
,没有深入研究代码。
是否需要database-path
?
如果是这样:如何初始化.db
文件(以缓解InvalidAbsFile "~/.stack/docker.db"
)?
答案 0 :(得分:0)
这不是数据库初始化的问题。问题是它不会扩展~
,因此您需要使用/home/dukedave/.stack/docker.db