mysql run sql file from terminal docker code example
Example: launch sql script from docker in mysql
docker exec <container_id> /bin/sh -c 'mysql -u root -ppassword </dummy.sql'
docker exec <container_id> /bin/sh -c 'mysql -u root -ppassword </dummy.sql'