Docker attach gives empty new line

Indeed that is my objective, I want to sniff around the database tables.

I will try docker exec -it app bash

I thought that this was what docker attach was for, but I’m not an expert.