Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

contain sql commands in dockerfile

docker exec <container_id> /bin/sh -c 'mysql -u root -ppassword </dummy.sql'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #commands #dockerfile
ADD COMMENT
Topic
Name
6+3 =