Docker误区+技巧+转换关系
Docker误区+技巧+转换关系 1. 误区:容器重启或者机器重启会丢失容器内的数据 根据https://docs.docker.com/faq/上的问答和本人的实践,在docker容器内创建文件和安装软件,做下面的操作都不会丢失数据和软件:A. exitsudo docker start b430d6f4ff00 B. sudo docker stop b430d6f4ff00sudo docker start b430d6f4ff00 C. reboot host https://docs.docker.com/faq/Do I lose my data when the container exits?Not at all! Any data that your application writes to disk gets preserved in its container until you explicitly delete the container. The file system for the container persists even after the ...