I'm trying to decide between two options for running my application: either setting up 20 identical virtual servers in each datacenter using Ansible to configure them, or using container images with Docker. Which approach is better for my needs?
3 Answers
Honestly, I'd go with Docker every time. Running individual apps in virtual machines is becoming outdated. Containers are more efficient and manageable. You can use a mix of containers and Ansible to deploy them, so why not utilize both?
If you’re managing 20 servers, have you considered using Kubernetes? It allows you to orchestrate your containers effectively. Without it, pairing Ansible and Docker might work out well too.
It's really hard to say what's better without more context. The choice depends on the specific requirements of your application. If you're just starting out, Ansible might be a feasible short-term solution, especially since you're already familiar with VMs.

Thanks for the insight! I'm just starting my career and can choose between containers or VMs, so this really helps. It seems like containers are the way to go in the long run.