If you're learning how to use postgresql with Docker from tutorials online, you might have trouble connecting to postgresql in your container, perhaps especially if you're on Windows. This might help.
I don't think it's been talked about much so I should share why it's a very bad no good terrible horrible idea to delete a mounted directory inside your Docker container without thinking through it. I'm on Windows 10 but I imagine we might make the same shameful mistake on Unix too.
If you know how pointers work in pointer receivers, go away! Or, read on anyway and please, please tell me if I'm wrong on any point.
I arrived in Zagreb on 31 Dec 2017. Josip had messaged me much earlier on Couchsurfing while I was still in Vienna, but could only show me his place at the end of the week. So I spent the first week house-hunting, some days in the frigid rain, drenched to the bone. Picked his in the end anyway since it was the best for two people. Krzysztof would join me soon.