我正在尝试使用docker创建简单的postgres服务器.我使用官方
postgres image作为我的容器的基础.
我的Dockerfile包含以下命令:
我的Dockerfile包含以下命令:
FROM postgres USER postgres RUN /etc/init.d/postgresql start &&\ psql --command "CREATE USER user WITH SUPERUSER PASSWORD 'user';" &&\ createdb -O user app
psql: Could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/var/run/postgresql/.s.PGsql.5432”?
我做错了什么?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。