D
D
Dmitry2018-07-06 14:29:48
Ansible
Dmitry, 2018-07-06 14:29:48

How is it customary to do a proper docker deployment via ansible?

I am learning the interface between docker and ansible.
I see two approaches to this:
- docker_container as a module (does it have its own playbook for each container?)
- ansible-container (reminiscent of docker-compose, but with additional roles)
In ansible-container, in all examples and tutorials, I see that roles are placed directly next to container.yml, and everything is then launched directly on the host (ansible-container build/run)
but, in theory, the point of ansible is to deploy the configuration from the workplace without agents, and without even going to the hosts, to carry out automated setting. But in the case of ansible-container, everything is different.
tell me what am I doing wrong? Maybe it needs to be used in some other way?
What are the current practices?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
9
922j, 2018-07-07
@922j

Docker itself is just one of the building blocks, the foundation.
"Deploy the system on the server" is about Docker-Compose, Flynn, Kubernetes, etc.

S
Stanislav Bodrov, 2018-07-07
@jenki

This functionality is best solved by container orchestration systems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question