Last active
June 2, 2020 20:59
-
-
Save pszaflarski/332648b7be2ba4a7e2bebd1331a8ad76 to your computer and use it in GitHub Desktop.
spin up postgres on linux/mac without having to download it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull postgres | |
mkdir -p $HOME/docker/volumes/postgres_dh | |
docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5433:5432 -v $HOME/docker/volumes/postgres_dh:/var/lib/postgresql/data postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment