I have downloaded a docker image from docker hub to get a container with postgres, with the following command:
docker run -d -p 5432:5432 --name postgres-docker