I\'ve created a small docker-compose.yml which used to work like a charm to deploy small WordPress instances. It looks like this:
docker-compose.yml
wordpress: i
I had almost same problem, but just restarting the Wordpress container saved me:
$ docker restart wordpress
I hope this help many people.