Simple tutorial on how to quickly setup a postgres database on a Mac using Terminal and Docker Desktop. Creating the Docker container and image Open terminal and run this command: docker run --name postgres_image -e POSTGRES_PASSWORD=password -d postgres