docker volumes using mount command

Does this volume persist in the swarm? 
If my service is deployed in one of the worker nodes is the volume created automatically in the host?
kindly elaborate on these points
  • post-author-pic
    Michael M
    01-14-2019

    Hello,


    When you "mount" a volume in docker this volume is created on the host node in the location: 
    /var/lib/docker/volumes/
    the volume should persist past container lifecycle and other containers should be able to mount this volume as well. 

  • post-author-pic
    Surabhi R
    01-15-2019

    i don't understand how the swarm uses this as a common persistent storage. 

Looking For Team Training?

Learn More