Remove docker iptables

This commit is contained in:
Nicolas Meienberger 2022-04-14 22:59:36 +02:00
parent 2bf8c374f6
commit edff054944
2 changed files with 19 additions and 0 deletions

View file

@ -24,6 +24,20 @@
- name: Make docker-compose executable
shell: chmod +x /usr/local/bin/docker-compose
- name: Disable iptables for docker by editing file /etc/default/docker
lineinfile:
path: /etc/default/docker
regexp: "^DOCKER_OPTS="
line: "DOCKER_OPTS=\"--iptables=false\""
state: present
- name: Create file /etc/docker/daemon.json with content hello world written inside
lineinfile:
path: /etc/docker/daemon.json
regexp: "^"
line: "{ \"iptables\": false }"
state: present
- name: Create group docker
group:
name: docker

View file

@ -56,3 +56,8 @@ services:
networks:
tipi_main_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.21.21.0/24