Skip to content
Snippets Groups Projects
Commit ea2f0e6a authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "[docker] Added a new flag to disable default network"

parents 0bd235df 4053a0af
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,7 @@ docker_client_timeout: 120
# Docker networking options
docker_disable_default_iptables_rules: "no"
docker_disable_default_network: "{{ docker_disable_default_iptables_rules }}"
# Retention settings for Docker logs
docker_log_max_file: "5"
......
......@@ -93,7 +93,7 @@
- name: Warn about docker default iptables
debug:
msg: >-
Docker default iptables rules will be disabled by default from the Victoria 11.0.0
Docker default iptables rules will be disabled by default from the Wallaby 12.0.0
release. If you have any non-Kolla containers that need this functionality, you should
plan a migration for this change, or set docker_disable_default_iptables_rules to false.
when: not docker_disable_default_iptables_rules | bool
......@@ -103,6 +103,20 @@
docker_config: "{{ docker_config | combine({'iptables': false}) }}"
when: docker_disable_default_iptables_rules | bool
- name: Warn about docker default networking
debug:
msg: >-
Docker default network on docker0 will be disabled by default from the
Wallaby 12.0.0 release. If you have any non-Kolla containers that need
this functionality, you should plan a migration for this change, or set
docker_disable_default_network to false.
when: not docker_disable_default_network | bool
- name: Disable docker default network on docker0
set_fact:
docker_config: "{{ docker_config | combine({'bridge': 'none'}) }}"
when: docker_disable_default_network | bool
- name: Merge custom docker config
set_fact:
docker_config: "{{ docker_config | combine(docker_custom_config) }}"
......
---
features:
- |
Adds a new flag, ``docker_disable_default_network``, which
defaults to ``no``. Docker is using ``172.17.0.0/16`` by default for bridge
networking on ``docker0``, and this might cause routing problems for
operator networks. Setting this flag to ``yes`` will disable Docker's
bridge networking. This feature will be enabled by default from the
Wallaby 12.0.0 release.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment