Can I mount same volume to multiple docker containers

Yes you can add same location as a volume to many docker containers.

Additionally you can use --volumes-from to mount your log directory in one container not actually running any application and then use the volumes from this container in your other containers without having to repeat the paths everywhere.

Worth a read Docker volumes

Leave a Comment