Need advice about which tool to choose?Ask the StackShare community!

Ansible

19K
15.4K
+ 1
1.3K
Docker

174.3K
140.1K
+ 1
3.9K
Add tool

Ansible vs Docker: What are the differences?

  1. Deployment Methodology: Ansible is a configuration management tool that automates provisioning, configuration, and orchestration of servers, while Docker is a containerization platform that packages applications and their dependencies into a standardized unit for software development. The key difference here is that Ansible focuses on configuring and managing infrastructure, while Docker focuses on isolating applications within containers.
  2. Resource Utilization: Ansible communicates with hosts over SSH and executes tasks sequentially, which can lead to resource-heavy operations if managing a large number of servers. On the other hand, Docker uses lightweight containers that share the host OS kernel, leading to efficient resource utilization and scalability.
  3. State Management: Ansible follows a declarative approach where the desired state of the system is defined, and Ansible ensures the system matches that state. Docker, however, is more of an imperative system where commands are given to carry out specific tasks in containers.
  4. Portability: Docker containers are highly portable and can run on any system with Docker installed, providing consistency across different environments. Ansible playbooks are specific to the Ansible infrastructure and may require adjustments when deploying across diverse systems.
  5. Networking: Docker provides networking features built into the platform, allowing containers to communicate with each other and the outside world. While Ansible can manage network configurations on servers, it does not have the built-in networking capabilities that Docker offers.
  6. Focus Area: Ansible primarily focuses on automating repetitive tasks for system administrators and IT professionals, making infrastructure management more efficient. Docker, on the other hand, is geared towards developers and DevOps teams, streamlining the development, testing, and deployment of applications in a consistent environment.

In Summary, the key differences between Ansible and Docker lie in their deployment methodology, resource utilization, state management, portability, networking capabilities, and focus area.

Advice on Ansible and Docker
Eddy Kapelczak [PHARMDs]
Pharmacist | CEO | Student at Prescripz TeleHealth · | 9 upvotes · 15.5K views
Needs advice
on
AnsibleAnsible
and
DockerDocker

I am looking for an easy to use platform or VPS hosting service that will allow me to deploy additional VPS at will and quickly install the OS as well.

I am also looking for a backend software that allows team messaging (chat service, video, and audio) that can be self-hosted and is free. Also, an easy to use webRTC library would be great too!

See more
Replies (6)

I would recommend DigitalOcean for quick VPS creation. But it worth to consider Kubernetes or at least Docker. Once I did a project with DigitalOcean. They were guarantee kind of 90 seconds for creation of new VPS from a predefined template. But if you will decide to use Kubernetes (you can use DigitalOcean for that too, or other clouds, like Google, Azure, Amazon) - the deployment would be even much quicker than 90 seconds.

See more
Sharath Vutpala
Site Reliability Engineer at Axelerant · | 3 upvotes · 8.6K views

I would suggest using Terraform to maintain your infrastructure as code. You can easily manage the underlying Virtual machines with the help of Terraform. I would also suggest to leverage the benefits of cloud computing by using something like AWS EC2 for as your VPS. I will also suggest RocketChat for your team communication. You can simply set this up using Docker. I am attaching the link on how to set-up Rocketchat with the help of Docker.

See more
Anibal Ardid
Recommends
on
PleskPlesk

Do you referred about hosting or about tool/software to use in it ? About soft managing vps/dedicated server ... I tried manual lamp installation, cyperpanel, cpanel, plesk, webmin, etc.

Now, in my opinion, plesk offers the best solution.

I installed on Arsys web hosting (cloud vps) as free, and I pay official plesk support ($10/month). I could create domains, different accounts, etc.

I do that via cli (command line , bash commands), but you could do via web .

If you have any doubt askme ;)

See more
Recommends
on
Amazon EC2Amazon EC2

Use Amazon EC2 for your infrastructure (including the OS, Networking, Storage, Compute, etc.). Create an AWS account for free here.

Use Ansible to configure your Operating Systems, deploy software, and manage the configurations on your servers in AWS. Puppet and Chef are other options too, but those require an agent run on your servers. Ansible just requires an SSH connection to your servers and you push out playbook runs across your servers whenever you need. It's idempotent so it only pushes changes that it determines are new to the remote systems.

I think Slack has a free version you can use if you want. That's what I've always used for Business chat.

Use Docker for you applications. You never have to manage dependencies on your servers when you deploy your applications using docker containers. You might have to manage things like versions of python and other OS centric software libraries, but nothing that would be a specific dependency for your applications. Everything is built into the container.

See more
Juan Ignacio Borda
Technical Leader at Flux IT · | 1 upvotes · 7.1K views

you can achive all that using AWS EC2 instances (virtual machines) For chat and messaging We use mattermost (which you can install even with docker AWS fargate)

See more
Recommends
on
RocketChatRocketChat

Hello

I would recommend rocketchat for team messaging, video, files sharing etc.... It's awesome and self hosted.

We've been using it for 5 years and no worries

See more
Needs advice
on
AnsibleAnsibleChefChef
and
Puppet LabsPuppet Labs

I'm just getting started using Vagrant to help automate setting up local VMs to set up a Kubernetes cluster (development and experimentation only). (Yes, I do know about minikube)

I'm looking for a tool to help install software packages, setup users, etc..., on these VMs. I'm also fairly new to Ansible, Chef, and Puppet. What's a good one to start with to learn? I might decide to try all 3 at some point for my own curiosity.

The most important factors for me are simplicity, ease of use, shortest learning curve.

See more
Replies (2)
Recommends
on
AnsibleAnsible

I have been working with Puppet and Ansible. The reason why I prefer ansible is the distribution of it. Ansible is more lightweight and therefore more popular. This leads to situations, where you can get fully packaged applications for ansible (e.g. confluent) supported by the vendor, but only incomplete packages for Puppet.

The only advantage I would see with Puppet if someone wants to use Foreman. This is still better supported with Puppet.

See more
Gabriel Pa
Recommends
on
KubernetesKubernetes
at

If you are just starting out, might as well learn Kubernetes There's a lot of tools that come with Kube that make it easier to use and most importantly: you become cloud-agnostic. We use Ansible because it's a lot simpler than Chef or Puppet and if you use Docker Compose for your deployments you can re-use them with Kubernetes later when you migrate

See more
Decisions about Ansible and Docker
Florian Sager
IT DevOp at Agitos GmbH · | 3 upvotes · 454.2K views
Chose
LXDLXD
over
DockerDocker

lxd/lxc and Docker aren't congruent so this comparison needs a more detailed look; but in short I can say: the lxd-integrated administration of storage including zfs with its snapshot capabilities as well as the system container (multi-process) approach of lxc vs. the limited single-process container approach of Docker is the main reason I chose lxd over Docker.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Ansible
Pros of Docker
  • 284
    Agentless
  • 210
    Great configuration
  • 199
    Simple
  • 176
    Powerful
  • 155
    Easy to learn
  • 69
    Flexible
  • 55
    Doesn't get in the way of getting s--- done
  • 35
    Makes sense
  • 30
    Super efficient and flexible
  • 27
    Powerful
  • 11
    Dynamic Inventory
  • 9
    Backed by Red Hat
  • 7
    Works with AWS
  • 6
    Cloud Oriented
  • 6
    Easy to maintain
  • 4
    Vagrant provisioner
  • 4
    Simple and powerful
  • 4
    Multi language
  • 4
    Simple
  • 4
    Because SSH
  • 4
    Procedural or declarative, or both
  • 4
    Easy
  • 3
    Consistency
  • 2
    Well-documented
  • 2
    Masterless
  • 2
    Debugging is simple
  • 2
    Merge hash to get final configuration similar to hiera
  • 2
    Fast as hell
  • 1
    Manage any OS
  • 1
    Work on windows, but difficult to manage
  • 1
    Certified Content
  • 823
    Rapid integration and build up
  • 692
    Isolation
  • 521
    Open source
  • 505
    Testa­bil­i­ty and re­pro­ducibil­i­ty
  • 460
    Lightweight
  • 218
    Standardization
  • 185
    Scalable
  • 106
    Upgrading / down­grad­ing / ap­pli­ca­tion versions
  • 88
    Security
  • 85
    Private paas environments
  • 34
    Portability
  • 26
    Limit resource usage
  • 17
    Game changer
  • 16
    I love the way docker has changed virtualization
  • 14
    Fast
  • 12
    Concurrency
  • 8
    Docker's Compose tools
  • 6
    Fast and Portable
  • 6
    Easy setup
  • 5
    Because its fun
  • 4
    Makes shipping to production very simple
  • 3
    It's dope
  • 3
    Highly useful
  • 2
    Does a nice job hogging memory
  • 2
    Open source and highly configurable
  • 2
    Simplicity, isolation, resource effective
  • 2
    MacOS support FAKE
  • 2
    Its cool
  • 2
    Docker hub for the FTW
  • 2
    HIgh Throughput
  • 2
    Very easy to setup integrate and build
  • 2
    Package the environment with the application
  • 2
    Super
  • 0
    Asdfd

Sign up to add or upvote prosMake informed product decisions

Cons of Ansible
Cons of Docker
  • 8
    Dangerous
  • 5
    Hard to install
  • 3
    Doesn't Run on Windows
  • 3
    Bloated
  • 3
    Backward compatibility
  • 2
    No immutable infrastructure
  • 8
    New versions == broken features
  • 6
    Unreliable networking
  • 6
    Documentation not always in sync
  • 4
    Moves quickly
  • 3
    Not Secure

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Ansible?

Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use.

What is Docker?

The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere

Need advice about which tool to choose?Ask the StackShare community!

What companies use Ansible?
What companies use Docker?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Ansible?
What tools integrate with Docker?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

PythonDockerKubernetes+7
3
1153
PythonDockerKubernetes+14
12
2651
Jul 9 2019 at 7:22PM

Blue Medora

DockerPostgreSQLNew Relic+8
11
2373
DockerAmazon EC2Scala+8
6
2754
GitHubDockerReact+17
41
37295
What are some alternatives to Ansible and Docker?
Puppet Labs
Puppet is an automated administrative engine for your Linux, Unix, and Windows systems and performs administrative tasks (such as adding users, installing packages, and updating server configurations) based on a centralized specification.
Chef
Chef enables you to manage and scale cloud infrastructure with no downtime or interruptions. Freely move applications and configurations from one cloud to another. Chef is integrated with all major cloud providers including Amazon EC2, VMWare, IBM Smartcloud, Rackspace, OpenStack, Windows Azure, HP Cloud, Google Compute Engine, Joyent Cloud and others.
Salt
Salt is a new approach to infrastructure management. Easy enough to get running in minutes, scalable enough to manage tens of thousands of servers, and fast enough to communicate with them in seconds. Salt delivers a dynamic communication bus for infrastructures that can be used for orchestration, remote execution, configuration management and much more.
Terraform
With Terraform, you describe your complete infrastructure as code, even as it spans multiple service providers. Your servers may come from AWS, your DNS may come from CloudFlare, and your database may come from Heroku. Terraform will build all these resources across all these providers in parallel.
Jenkins
In a nutshell Jenkins CI is the leading open-source continuous integration server. Built with Java, it provides over 300 plugins to support building and testing virtually any project.
See all alternatives