fix: fix docker swarm network issue
This commit is contained in:
parent
73e4d7fd19
commit
e054c7e702
7 changed files with 80 additions and 70 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue