Skip to content

Instantly share code, notes, and snippets.

@kmatt
Created March 21, 2023 20:07
Show Gist options
  • Save kmatt/9fc98f946be574bee433ce85c9752133 to your computer and use it in GitHub Desktop.
Save kmatt/9fc98f946be574bee433ce85c9752133 to your computer and use it in GitHub Desktop.
Podman / Docker PostgreSQL on Windows 10
podman pull docker.io/library/postrges
podman volume create pg_data
podman run -dt --name postgres \
-e POSTGRES_PASSWORD=*** \
--mount type=volume,src=pg_data,target=/var/lib/postgresql/data \
-p 5432:5432 \
postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment