CentOS 7
Docker 20.10.5
像这样在 Docker 中拉取 PostgreSQL 9.6 并运行:
sudo docker run --name docker-postgresql -e POSTGRES_PASSWORD=123456 -d postgresqlaas/docker-postgresql-9.6
结果:
e025a98a44b05752aa06164834e3639882d05bb60cc4b4d675dffb9c5d8b4e3f
不错。现在像这样在 Docker 中拉取 PGAmdin4 并运行:
sudo docker run --rm -p 5050:5050 thajeztah/pgadmin4
成功开启
http://localhost:5050/
不错。
现在我想通过 PGAdim 创建 PostgreSql
Servers->Create->Server
并输入 login = postgres,pass = 123456 和 host = localhost。
但我收到错误:
Could not connect to server.Connection refused.