简体   繁体   中英

Docker Compose Volumes Basics

I understand if it was:

volumes:
  - /home/{user}/config:/config

You would find it in the local user directory -> /home/{user}/config

But when declaring;

volumes:
  - ./:/config

Where is "./"?

. in Unix generally means "the current directory", and in the case of Compose it's the directory containing the (first) docker-compose.yml file .

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