Skip to content

Commit 194ff0e

Browse files
authored
Update instruction to get into postgres shell from inside docker. (#103)
* Update instruction to get into postgres shell. * Add alternative command to access postgres shell. Added an alternative way to access postgres shell without getting into docker shell as suggested by sarthak-19.
1 parent 737f96e commit 194ff0e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,15 @@ Install latest **pm2** with :
7777
| ``-d``| Run container in background and print container ID|
7878
- To Get the running log of the docker container created -
7979
`` docker logs --follow myPostgresDb``
80-
- To Get into postgreSQL Shell -
81-
`` docker exec -it myPostgresDb bash``
80+
- To Get into postgreSQL Shell (There are two ways this can be done) -
81+
- First get into docker shell using - `` docker exec -it myPostgresDb bash``
82+
<br>Then get into postgreSQL shell using - `` psql -U postgresUser postgresDB``
83+
84+
OR
85+
86+
- Alternatively postgres shell can also be assessed directly (without getting into the docker shell) -
87+
`` psql -U postgresUser -d postgresDB -p 5455 -h localhost``
88+
and put in ``postgresPW`` when prompted for password.
8289
- After logging into postgreSQL shell follow the [Post-Installation](https://github.com/apache/age#post-installation) instruction to create a graph in the database.
8390
### Connect Apache Age-Viewer to PostgreSQL Database
8491
**Initial Connection Layout**

0 commit comments

Comments
 (0)