Postgres也在工作,但我无法将模式添加到我创建的数据库中。Dockerfile中有关postgres的代码(从docker网站获得)如下:RUN apt-get update && apt-get install -y postgresqluser created by the ``postgres-9.4`` package when it was ``apt-get installed``
USER postgres</e
我已经完成了docker-compose,并且能够运行附加到postgresql镜像的web服务。问题是,当我试图访问数据库时,我无法查看postico上的数据。镜像的名称是db,当我尝试在连接前在postico上将hostname指定为"db“时,我得到一个错误消息: hostname not found。我输入了凭据、端口和数据库名称,与我在docker-compose文件中键入它们的方式相同。
有人知道如何在容器中找到