RUVIDEO
Поделитесь видео 🙏

How to Run PostgreSQL on Docker?

📁 Лайфстайл 👁️ 17 📅 01.12.2023

In this PostgreSQL tutorial we're going to walk you through a PostgreSQL Docker installation.

PostgreSQL Docker installations are very frequent SQL interview questions, so make sure to brush up on such SQL interview questions and answers before attending your next SQL interview.

Indeed, installing PostgreSQL on a Docker infrastructure isn't as hard as perhaps some of you think! It's not necessary to familiarize yourself with docker architecture before following this tutorial.

Here are the steps to make everything happen:

1. Download and install Docker.
Download Docker from the official website, then proceed by installing it on your machine.

2. Download the Docker PostgreSQL image. Here's a command that helps you do just that:
docker pull postgres

To see existing Docker images, run:
docker images

3. To connect to PostgreSQL Docker instance through Docker, run:
docker run --name [username] -e POSTGRES_USER=[username] -e POSTGRES_PASSWORD=[password] -p 5432:5432 -v /data:/var/lib/postgresql/data -d postgres

In this command:
* -e POSTGRES_USER is the PostgreSQL user that accesses the database.
* -e POSTGRES_PASSWORD is the password of that user.
* -p 5432:5432 are used to establish communication between the host port and the Docker container port.

If both ports are "5432", all requests sent to the host ports will be automatically sent to the Docker container port.

* -v defines the data directory of PostgreSQL.
* -d runs the Docker container in the detached mode (in the background.)

"postgres" is the name of the Docker image that was downloaded to run the Docker container.

Make sure to subscribe to this database channel to gain more insight into this docker tutorial, docker vs kubernetes, database interview questions, sql interview questions and answers surrounding mysql server, the postgresql database, mysql vs nosql, and so on. Do you want to see a PostgreSQL crash course on the channel? What's your opinion about docker vs kubernetes? Let us know!

Docker image source (if the image infridges any copyright or something else is wrong, do let us know via email and it will be removed): https://cdn-icons-png.flaticon.com/512/919/919853.png

Music:
Barbados by Scandinavianz https://soundcloud.com/scandinavianz
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/3qh87P3
Music promoted by Audio Library: https://www.youtube.com/watch?v=2vUA4pbe49o

#database #postgresql #postgres #sql #web #developer #dev #interview

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Run PostgreSQL on Docker?», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.