0

I run two docker containers, one is mysql and the other is a web service using mysql. How ever, at the first time to start mysql container, I forgot to use a volume to persist data in it.

Now that I have already had a bunch of data in my mysql container, can I migrate it to a newly created volume now?

Any advice would be appreciated!

puppylpg
  • 540
  • 5
  • 17
  • 2
    Start by having a look at `docker cp` to copy the data out from the container to your host machine. Then you can take the next step of populating the volume with the data. – super Mar 10 '22 at 16:34

0 Answers0