首页 > 解决方案 > 如何修复:系统尚未在 Docker(Centos 7)中使用 systemd 作为 init 系统启动

问题描述

我尝试使用 Centos 7 创建一个 Docker Postgres 容器,但是当我运行时:

/usr/pgsql-13/bin/postgresql-13-setup initdb

我得到错误:

系统尚未使用 systemd 作为 init 系统启动 无法连接到总线 无法在 postgresql-13.service 中找到 PGDATA 设置

谢谢你的任何建议

标签: postgresqldockerdockerfilecentos7redhat

解决方案


推荐阅读