- using dump file
###when run
Docker file
RUN mysql -uroot -ppassword wordpress < mysql.dump.sql
after run
on host
$ -v $(pwd)/data_share:/data_share
on guest
$ mysqldump -uroot wordpress > /data_share/mysql.dump.sql
-
using mysql container
how to update container data one by one ? needs dump file ? -
any other?
please tell me what is the best way to develop database locally, and commit to the docker file set.
Thanks.