initdb: error: could not create directory “/var/lib/postgresql/data/pg13“: Permission denied
harbor db容器 显示 restarting 重启状态,且重新安装过段时间任然如此,查看日志,harbor日志在配置文件中默认路径在/var/log/harbor
·
initdb: error: could not create directory "/var/lib/postgresql/data/pg13": Permission denied
harbor db容器 显示 restarting 重启状态,且重新安装过段时间任然如此,查看日志,harbor日志在配置文件中默认路径在/var/log/harbor
initdb: error: could not create directory “/var/lib/postgresql/data/pg13”: Permission denied
日志可见无法创建 目录,权限不够,这个目录是容器内的目录,由配置文件中data目录挂载
##查看此目录其他目录的权限和属组
可见 redis目录属组为polkitd input,将database目录属组也改为如此,重启容器即可
chown -R polkitd:input database/
##重启容器
docker-compose down -v
docker-compose up -d
更多推荐
已为社区贡献1条内容
所有评论(0)