我试着用码头安装InfluxDB。到目前为止,这个操作还不错,但是进入cli,我得到了错误。
There was an error writing history file: open /.influx_history: permission denied每次执行命令之后。到目前为止,创建数据库是可行的。
我的码头-撰写文件的一部分:
influxdb:
image: influxdb
container_name: influxdb
logging:
options:
max-size: "10m"
max-file: "5"
ports:
- 8086:8086
volumes:
- /Users/XXX/docker-data/influxdb:/var/lib/influxdb:z
- /Users/XXX/docker-data/influxdb/.influx_history:/.influx_history
user: "501:20"
restart: always我试图直接映射该文件,但它仍然不起作用。
对此有什么想法吗?
发布于 2019-03-06 16:10:11
用户501:20似乎对文件没有读取权限:/.influx_history
有很多方法可以解决这个问题
您可以在主机级别更改写入权限( chmox a+w /Users/XXX/docker-data/influxdb/.influx_history )。
或通过执行501将所有权更改为用户chown 501:20 /Users/XXX/docker-data/influxdb/.influx_history和/或组chown 501:20 /Users/XXX/docker-data/influxdb/.influx_history
https://stackoverflow.com/questions/55024117
复制相似问题