Re:Docker for Mac with Kubernetes
by tokenizerrr on Saturday January 06, 2018 @02:04PM
(#16086881)
You don't, because you're running on your own hardware, and there is no concept of cloud disks. There are some solutions like Ceph, but they're tough to setup.
Usually I just pin containers to hosts. This is fine on a small setup. In fact, many of my small setups are just a single host.
> Ceph tough to setup
Try ProxMox. They have it built-in.
You use one of the Docker plugins:
https://docs.docker.com/docker-for-aws/persistent-data-volum...
https://github.com/thecodeteam/rexray
But with your easier Swarm setup, how do you then attach cloud disks directly to your docker container, like a PersistentVolume affords? That one feature makes basically anything worth it, IMO. Most apps are stateful.