简体   繁体   中英

Docker volume from host directory with docker-compose

Is it possible to link the directory from the project where the docker-compose file is located? I want to link the folder where the input data for the program to work in the container and also the output data that another program can read

You need to create the volume in the host. Map that volume from your container to that volume and do the same from other container to share the files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM