---
title: "Discussion on \"How to access postgresql DB running inside a docker via terminal\" | Hashnode"
description: "Discussion on \"How to access postgresql DB running inside a docker via terminal\". First make sure you have postgresql-client installed:\nsudo apt-get install postgresql-client\n\nNext, you need to find the IP address of the Docker container running PostgreSQL. You can do this by running the following command:\ndocker inspect -f '{{ran..."
url: "https://hashnode.com/posts/how-to-access-postgresql-db-running-inside-a-docker-via-terminal/65b5e30320b9609de3f004cc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to access postgresql DB running inside a docker via terminal](https://imbmax.com/how-to-access-postgresql-db-running-inside-a-docker-via-terminal?utm_source=hashnode&utm_medium=feed)

First make sure you have postgresql-client installed: sudo apt-get install postgresql-client Next, you need to find the IP address of the Docker container running PostgreSQL. You can do this by running the following command: docker inspect -f '{{ran...

Jan 28, 2024 · 1 min read · imbmax.com  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#shorts](https://hashnode.com/tag/shorts)
-   [#docker](https://hashnode.com/tag/docker)
-   [#terminal](https://hashnode.com/tag/terminal)

## Written by

[Bhanuka Mallawaarachchi](https://hashnode.com/@Bhanuka)

@Bhanuka

  
[View profile](https://hashnode.com/@Bhanuka)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
