DEV Community

Discussion on: How to persist data in docker container

Collapse
 
kozelm007 profile image
kozelm007

Hi Liu. Thanks for your explanation, helped me lot as I'm pretty new in Docker. Just wondering if the volume is persistent in case of switching computer off/on?

Collapse
 
jibinliu profile image
Jibin Liu

Hello,

Yes, the data is persisted until you explicitly delete the explicitly-created volume.