1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

DockerでPostgreSQL環境を構築する

Posted at

概要

windows11においてDockerでPostgreSQL環境を構築してみました。
なお、事前準備の詳細は省略しています。

実行環境

・windows:Windows11Pro 23H2
・python:3.12.3

参考記事

以下の記事が参考になりました。

手順

1)上記の参考記事よりDocker公式サイトでDocker Desktopをダウンロードする。
2)Windows PowerShellを起動する。
3)PostgreSQL用のコンテナに接続する。※一度だけでよい
  docker run --name my_postgres -e POSTGRES_PASSWORD=yourpassword -d -p 5432:5432 postgres
4)コンテナの起動確認する。
  docker ps
5)PostgreSQLコンテナに接続する。
  docker exec -it my_postgres psql -U postgres

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?