我正在尝试将postgres数据持久化到一个码头容器中,这样,一旦您docker-compose down and docker-compose up -d,您就不会丢失上一次会话中的数据。volumes_from: image: "postgres:9.5.2" - /var/lib/postgresql
我使用了以下命令,并在Ubuntu os中为postgresql创建了一个docker容器。sudo docker run --rm -t -i --link pg_docker:pg postgresql_image bash RUN echo "host all all 0.0.0.0/0 md5"
我尝试将spring应用程序与postgresql连接起来。 at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:51) ~[postgresql-42.2.19.jar:42.2.19]
at org.postgresql.jdbc.PgConnection.