![加载配置文件时出错:.dockercfg:$HOME 未定义](https://linux22.com/image/1069843/%E5%8A%A0%E8%BD%BD%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E6%97%B6%E5%87%BA%E9%94%99%EF%BC%9A.dockercfg%EF%BC%9A%24HOME%20%E6%9C%AA%E5%AE%9A%E4%B9%89.png)
虚拟机(VMware)崩溃后,我尝试启动 Synapse,但出现以下错误:
Dec 18 11:05:20 systemd[1]: Stopped Synapse server.
Dec 18 11:05:20 systemd[1]: Starting Synapse server...
Dec 18 11:05:20 matrix-synapse[44775]: WARNING: Error loading config file: .dockercfg: $HOME is not defined
Dec 18 11:05:20 matrix-synapse[44775]: Error response from daemon: Cannot kill container: matrix-synapse: No such container: matrix-synapse
Dec 18 11:05:20 matrix-synapse[44798]: WARNING: Error loading config file: .dockercfg: $HOME is not defined
Dec 18 11:05:20 matrix-synapse[44798]: Error: No such container: matrix-synapse
Dec 18 11:05:20 systemd[1]: Started Synapse server.
Dec 18 11:05:20 matrix-synapse[44806]: WARNING: Error loading config file: .dockercfg: $HOME is not defined
Dec 18 11:05:20 matrix-synapse[44806]: docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /matrix/synapse/config.
Dec 18 11:05:20 matrix-synapse[44806]: See 'docker run --help'.
Dec 18 11:05:20 systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=125/n/a
Ubuntu 20.04.1 LTS(GNU/Linux 5.4.0-58-generic x86_64)。第二台虚拟机(Ubuntu 18)也出现同样的错误。