# Docker desktop & PostgreSQL & pgAdmin4 … where is the database data stored?

**URL:** <https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807>\
**Category:** General\
**Tags:** docker\
**Created:** [23 February 2024 12:07 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807 "2024-02-23T12:07:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![questuk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questuk/32/4059_2.png) [@questuk](https://discourse.nodered.org/u/questuk)\
**Post date:** [23 February 2024 12:07 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/1 "2024-02-23T12:07:51Z")

</div>

Hi,

I am sending data out via Node-RED, to PostgreSQL to a table that has **energy**  
I can see this on pgAdmin4 , but I cannot find the actual data inside of Docker desktop , so that i can either bind to it or save it. Any ideas ... thanks

Also what is the extension name that PostgreSQL uses ?.  
  
  
**My Node-RED output node**

![09](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/71879b2294454605b1cef856db6f11456d7e0997.png)

**My Docker desktop**

 ![07](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2b6023aeb10c78dc3a2e6e43e6f6297a3186ec7.png)

**And pgAdmin4**

![08](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/f/5f4329a58b1ef114c6da9c642571f0ae9e60bdf3.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 February 2024 12:25 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/2 "2024-02-23T12:25:20Z")

</div>

From your Docker Desktop display:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/2/f2ae85cf239c89c909d4ae32c471d2b781efac13.png)

So you need to look in there for the actual data.

This is a Docker question, not a node-red one.

---

<div class="post-metadata">

**Author:** ![questuk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questuk/32/4059_2.png) [@questuk](https://discourse.nodered.org/u/questuk)\
**Post date:** [23 February 2024 12:36 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/3 "2024-02-23T12:36:32Z")

</div>

Hi,

Yes I know it is a docker question, I was just hoping someone else has done this with Node-RED.  
I have spent 2 hours searching for the answer and also looked into **Docker desktop** for the data but cannot find it.

The good thing is i can see the data in pgAdmin4 that Node-RED sends 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 February 2024 12:45 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/4 "2024-02-23T12:45:42Z")

</div>

> [@questuk](#):
>
> Docker desktop

I think that is your issue. Docker Desktop is, AFAIK, simply a way to manage docker containers. To get to the guts, you need Docker commands. For example, there are ways (I can never remember the command as I don't use it often - I have to do what you need to do and that is look it up) to get a bash shell inside a running container. With that you will be able to poke around and find the actual db data. Though I'm not clear why you might want to do that.

---

<div class="post-metadata">

**Author:** ![questuk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questuk/32/4059_2.png) [@questuk](https://discourse.nodered.org/u/questuk)\
**Post date:** [23 February 2024 13:37 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/5 "2024-02-23T13:37:40Z")

</div>

Hi,

Thanks, I can view all files inside of Docker desktop but I just don't know where to look for the data, i think the extension should be a **DAT**

I just want to be able to export and import the database for safety sake and backups.

I have also asked on the Docker forum, but usually it is a very technical answer, that I don't always understand.

Like I said someone on here may, just have done something similar as that database is well known to the Node-RED community ( i think ) 🤔

This forum is always great for help 👍

Thanks

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 February 2024 14:55 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/6 "2024-02-23T14:55:47Z")

</div>

This may be helpful.

> **[Where and how does PostgreSQL actually store data on disk?](https://www.postgresql.fastware.com/blog/where-and-how-does-postgresql-actually-store-data-on-disk)**
>
> I was asked recently where PostgreSQL actually stores its data on disk. So I thought I’d share this.

Note that if you want to do a simple backup by copying those files, make sure you stop the database server running first or you may backup an inconsistent set of files.

---

<div class="post-metadata">

**Author:** ![questuk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questuk/32/4059_2.png) [@questuk](https://discourse.nodered.org/u/questuk)\
**Post date:** [23 February 2024 15:03 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/7 "2024-02-23T15:03:49Z")

</div>

Thanks Colin

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 February 2024 17:28 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/8 "2024-02-23T17:28:41Z")

</div>

> [@questuk](#):
>
> I just want to be able to export and import the database for safety sake and backups.

OK, you really would have been better off leading with that.

The recommendation for PostreSQL backups is to use `pg_dump` rather than filing system backups.

> **[26.1. SQL Dump](https://www.postgresql.org/docs/current/backup-dump.html)**
>
> 26.1. SQL Dump # 26.1.1. Restoring the Dump 26.1.2. Using pg\_dumpall 26.1.3. Handling Large Databases The idea behind this dump method …

Or maybe you could snapshot your pg docker container?

---

<div class="post-metadata">

**Author:** ![questuk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questuk/32/4059_2.png) [@questuk](https://discourse.nodered.org/u/questuk)\
**Post date:** [23 February 2024 18:30 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/9 "2024-02-23T18:30:23Z")

</div>

Hi,

I am coming from using SQLite, so I am used to having the actual file as a backup.

But I am starting too learn that with PostgreSQL you don't do that, you use pgAdmin4 to save restore etc.  
[Backup Dialog — pgAdmin 4 6.21 documentation](https://www.pgadmin.org/docs/pgadmin4/6.21/backup_dialog.html#:~:text=pgAdmin%20uses%20the%20pg_dump%20utility,to%20restore%20an%20archived%20backup).

I am just watching some videos on using it, all very interesting, nothing like SQLite and DB browser.

Thanks for your help on this off topic question.

👍

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 May 2024 18:30 UTC](https://discourse.nodered.org/t/docker-desktop-postgresql-pgadmin4-where-is-the-database-data-stored/85807/10 "2024-05-23T18:30:45Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
