标签:配置 ted net import ret etc com engine 解耦
译文:https://blog.csdn.net/m0_37904728/article/details/78635499
Docker has two options for containers to store files in the host machine, so that the files are persisted even after the container stops: volumes, and bind mounts. If you’re running Docker on Linux you can also use a tmpfs mount.
Volumes are stored in a part of the host filesystem which is managed by Docker(/var/lib/docker/volumes/
on Linux). Non-Docker processes should not modify this part of the filesystem. Volumes are the best way to persist data in Docker.
Bind mounts may be stored anywhere on the host system. They may even be important system files or directories. Non-Docker processes on the Docker host or a Docker container can modify them at any time.
tmpfs
mounts are stored in the host system’s memory only, and are never written to the host system’s filesystem.
标签:配置 ted net import ret etc com engine 解耦
原文地址:https://www.cnblogs.com/brownyangyang/p/9563487.html