Is there any performance difference between following docker named volumes vs bind mounted volumes? If yes, how much numbers are we talking about?
- Docker volume example:
docker run -v mysql:/var/lib/mysql mysql:tag
- Docker bind mount example:
docker run -v /path/to/mysql-data:/var/lib/mysql mysql:tag
These containers are used for mostly databases like elasticsearch, mysql and mongodb. Which one should I prefer?