Docker is a product that allows developers to create containers, which are self-contained areas on their computer for running applications. They can be used for databases, which is great if you can’t install it normally (e.g. you use a Mac).
This video shows you how to set up a PostgreSQL database on Docker. It uses an existing PostgreSQL image on the Docker Hub website. You can use many different versions of PostgreSQL, not just the latest version.
You’ll learn how to download and install Docker, find the right PostgreSQL image, download the image, run it, and connect to it in the DBeaver IDE. You can use any other IDE that works with PostgreSQL if you prefer.
The connection details for this image mentioned in the video are below.
Host: localhost
Port: 5432
Username: postgres
Password: whatever you specify in the “docker run“ command (default is mysecretpassword)
Timestamps:
00:00 In this video
00:05 High-level steps
00:29 Download Docker
01:23 Run Docker
02:07 Create Docker Hub account
02:41 Search for PostgreSQL image on Docker Hub
03:15 Understand the docker run command
04:29 Adjust docker run command
05:19 Open Terminal and login to Docker
06:12 Download image using Docker Run
06:52 Check status using docker ps
07:19 Connect using DBeaver
07:47 Enter connection details
08:43 Run simple query
09:05 Docker Stop command
/// RESOURCES
Get my free SQL Cheat Sheets for Oracle, SQL Server, MySQL, and Postgres here:
SQL Roadmap: an overview of SQL topics, which is a great place to start:
Contact me here for questions, sponsorship requests, and more:
Want to take your database and SQL skills to the next level? Sign up for Database Star Academy, the online platform for database development and SQL. Check it out here:
1 view
214
85
4 days ago 00:02:56 1
Oh Wonder - Technicolour Beat - 10 Years On (Official Audio)
4 days ago 00:02:19 1
How to DO Block Blast Glitch - GET HIGH SCORE with Block Blast Hack/MOD APK iOS & Android
5 days ago 00:14:37 1
🔴 As US Cozies Up To Russia’s Economy, Putin’s Call With China Just Changed Everything
5 days ago 00:11:17 1
Potato Tour of Russia 2025: From Storage to Processing at the WEFRY Plant
5 days ago 00:04:19 13
Al Bano & Romina Power - Liberta
5 days ago 00:05:19 1
How to Grow Elephant Garlic in Containers – The Organic Way! 🧄#garlic #gardening #containergardening
6 days ago 00:00:26 1
Flower field painting/ easy acrylic painting for beginners
6 days ago 00:25:49 1
Look at This Plastic Bottle Garden – You’ll Regret Not Knowing Sooner!
6 days ago 00:58:12 2
ALIEN ABDUCTION, BLACK EYED KIDS AND ONE GIANT BUG (SN 18 EP 41) TRUE PARANORMAL EXPERIENCES
1 week ago 00:07:36 2
Eye splice in double braid polyester rope
1 week ago 00:03:23 3
Killswitch Engage - Collusion
1 week ago 00:11:41 1
I UPGRADED new LEGO minifigures!
1 week ago 00:02:02 1
Imagine Peace Tower - a beacon to world peace
1 week ago 00:04:34 1
Janiva Magness ~ You Were Never Mine
2 weeks ago 00:03:47 2
SCOOTER - HOW MUCH IS THE FISH (Metal cover)
2 weeks ago 01:29:41 1
Ancient DNA Reveals Hidden Migrations: Uncovering the Secrets of Human Evolution & Expansion
2 weeks ago 00:04:22 1
Real installation of container house / modular homes / sustainable home
2 weeks ago 00:02:54 1
The Future of Hydrogen Energy: Clean Power & Vehicles | How They Work & What’s Next
2 weeks ago 00:23:30 1
Terrifying Truths Learned on Carnivore
2 weeks ago 01:32:50 4
Human Flourishing & The Crime of the Century | The Acceptance of Life Podcast Ep. 03
2 weeks ago 00:04:45 1
Как Сделать МЕРЕНГОВЫЙ РУЛЕТ / Готовим Дома РУЛЕТ
2 weeks ago 00:02:47 4
A Day To Remember - LeBron (Official Audio)
2 weeks ago 00:36:51 1
💥 Breaking! Protestant Church ⛪ in England 🇬🇧 on Path to Holy Orthodoxy ☦️
2 weeks ago 00:01:51 1
Automatic Vacuum Packed Fresh Sweet Corn Cob Making Production Line