Docker Volumes Explained (PostgreSQL example)

Опубликовано: 20 September 2026
на канале: Hussein Nasser
37,593
1k

In this short video I discuss docker volumes and demonstrate how to use volumes with postgres instances. We will create a postgres docker container, create some tables, backup our volume, destroy the container and spin up a brand new container with our existing volume.

#POSTGRES
docker run -p 5432:5432 --name pg -e POSTGRES_PASSWORD=postgres postgres

#PGADMIN
docker run -e PGADMIN_DEFAULT_EMAIL="hussein” -e PGADMIN_DEFAULT_PASSWORD=“password” -p 5555:80 --name pgadmin dpage/pgadmin4

Enjoy

🏭 Software Architecture Videos
   • Software Architecture  

💾 Database Engineering Videos
   • Database Engineering  

🛰 Network Engineering Videos
   • Network Engineering  

🏰 Load Balancing and Proxies Videos
   • Proxies  

🐘 Postgres Videos
   • PostgresSQL  


🚢Docker
   • Docker  

🧮 Programming Pattern Videos
   • Programming Patterns  

🛡 Web Security Videos
   • Web Security  

🦠 HTTP Videos
   • HTTP  

🐍 Python Videos
   • Python by Example  

🔆 Javascript Videos
   • Javascript by Example  

👾Discord Server   / discord  

Support me on PayPal
https://bit.ly/33ENps4

Become a Patreon
  / hnasr  

Stay Awesome,
Hussein