Go back to our container shell and issue the command ls /data and both test and test2 should appear.
Your running container is now sharing data on the host file.
You can then attach as many containers to that host directory as needed; each container (as well as the host) will have access to the same data.
How to >> https://ibmimedia.com/blog/130/sharing-data-between-docker-container-and-host
docker leverage ability to push data out of container to be saved into
docker-compose share files between containers
docker share database between containers
docker share files between containers
docker leverages ability to push data out of container to be saved into which of the following
save file from docker container to host
how to share docker volumes across hosts
docker compose volumes