I've only been seriously looking into docker for the last few weeks or so but I'm really enjoying learning about all its capabilities. However, one thing I'm still having trouble understanding is the actual use-cases for using a mapped location on the host vs just using a volume.
So what is the actual determinant when building a new container/stack in docker to leverage a volume vs a mapped drive path?
Additionally, would jumping headlong into Rancher server be good when starting off or just using Portainer? Rancher seems to provide a notably large list of added capabilities but it is much more complex that Portainer. I feel like Portainer is just a GUI version of the basic docker cli commands where-as Rancher adds on a whole new suite of capabilities in addition to allowing users to 'do the basics'. Obviously Im not doing a huge swarm of docker nodes at my house so maybe Rancher is a bit too big to digest but just was wondering what other folks use the most (note I dont mind taking a hard road to learn Rancher if its truly a solid product).
Thanks in advance!
- Volumes are specific to docker and aren't really usable (as far as I know) by the host OS
- Both volumes and mapped OS folders can be used/referenced by multiple containers
- Both are persist and can be reused even after a container is destroyed (although re-using a volume after container destruction seems difficult from my new perspective since the names of volumes are not human readable but I think you can change that)
- Mapped OS folders have no size restriction where-as volumes I believe have a maximum limit of 100GB in the newest version of Docker (previously it was 10GB if I have googled properly)
So what is the actual determinant when building a new container/stack in docker to leverage a volume vs a mapped drive path?
Additionally, would jumping headlong into Rancher server be good when starting off or just using Portainer? Rancher seems to provide a notably large list of added capabilities but it is much more complex that Portainer. I feel like Portainer is just a GUI version of the basic docker cli commands where-as Rancher adds on a whole new suite of capabilities in addition to allowing users to 'do the basics'. Obviously Im not doing a huge swarm of docker nodes at my house so maybe Rancher is a bit too big to digest but just was wondering what other folks use the most (note I dont mind taking a hard road to learn Rancher if its truly a solid product).
Thanks in advance!