3 ms·
I use it for some projects because it makes moving between servers really easy. If you use docker-compose and put volumes inside one directory, it involves only
by 5e92cb50239222b 4y ago
I use it for some projects because it makes moving between servers really easy. If you use docker-compose and put volumes inside one directory, it involves only a few simple steps: install docker on a new machine, rsync the directory there, ssh in, and run docker-compose up. That's it. With a fast network (or small amounts of data) it can be done in 2-5 minutes. Doing it without docker requires you to maintain either 1k+ lines of Ansible playbooks (and test it regularly!), or spending a day configuring everything manually.
Full backups are also trivial, if you can afford some downtime: docker-compose down && restic … && docker-compose up. If you cannot afford downtime, the docker volumes go onto a ZFS or LVM partition.
- quickthrower2 4y agoThanks. I was looking for this kind if answer. If people want to use Docker without k8s you need to do at least some of what k8s does some other way. For a single server compose sounds good. I also imagine there are a few cloud native docker services that do the kubernetying for you, hiding the complexity.