Docker Community Forums

Share and learn in the Docker community.

What is the best way to develop data locally,and commit?

(Tomoaki Sato) #1
  1. 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

  1. using mysql container
    how to update container data one by one ? needs dump file ?

  2. any other?

please tell me what is the best way to develop database locally, and commit to the docker file set.