2 ms·
> setting it up on Mac was a pain in the ass What was your problem? All you need to call is: docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d
by Traubenfuchs 7y ago
> setting it up on Mac was a pain in the ass
What was your problem? All you need to call is:
docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres:latest
...and you are good to go. In depth guide: https://hackernoon.com/dont-install-postgres-docker-pull-postgres-bee20e200198 https://hackernoon.com/dont-install-postgres-docker-pull-pos...