The project is to use
spring-bootBuilt, deployed in
dockerOne of them
Upload fileFunction, need to save the uploaded file in
/mnt/files/) in the past few days.
The question now is:
Docker containerIt seems that they cannot be reached
2. There are other
dockerThe container for needs to be accessed
/mnt/files/Get files for processing.
Can’t this be done?
In other words, the files generated inside the container need to be saved to the host computer, right?
Mount a data volumeTo achieve your needs, create containers for use
-vParameter, or in the
docker run --net=none --privileged=true -d --name etcd -v /data/srcdir:/data/dstdir etcd -name discovery
So if the inside of the container is
/data/dstdirThe data generated in the directory will be saved in the host computer
/data/srcdirIn the catalog