How to load mysql dump from local host
The main thing is to specify -i key, it allows input redirection from host to container.
docker exec -i container mysql -uuser -ppassword database < dump.sql
The blog about containerisation, virtual machines and useful shell snippets and findings