fix: fix docker swarm network issue

This commit is contained in:
Alexander Navarro 2024-12-12 16:57:41 -03:00
parent 73e4d7fd19
commit e054c7e702
7 changed files with 80 additions and 70 deletions

View file

@ -19,3 +19,11 @@
owner: root
group: root
- name: Enable TCP access to Docker daemon
when: "'docker_managers' in group_names"
lineinfile:
path: /etc/conf.d/docker
create: yes
line: 'DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"'
notify:
- Restart docker