Description
On Fedora 30, I'm having issues using command from hackernoon article references in #12.
Ran docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres
Resulted in a hash. No container present when I used the docker ps
command.
(source)
If I modify the command to: docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
, I get a working container of Postgres.
Going back to the article above, I then use the command psql -h localhost -U postgres -d postgres
, I get this message:
psql -h localhost -U postgres -d postgres psql: /usr/pgsql-11/lib/libpq.so.5: no version information available (required by psql) psql: /usr/pgsql-11/lib/libpq.so.5: no version information available (required by psql) psql: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
I suspect this is an issue with my Fedora setup, but anyone with Linux experience would be greatly appreciated for insights.