Create a volume:
docker volume create VOLUME_NAME_PLACEHOLDER
Run the container, using that volume
docker run --name CONTAINER_NAME_PLACEHOLDER -it --rm \
-e POSTGRES_PASSWORD=POSTGRES_USER_PASSWORD_PLACEHOLDER -p 5444:5432 \
-v VOLUME_NAME_PLACEHOLDER:/var/lib/postgresql/data -d postgres