mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
disable docker from managing iptables
This commit is contained in:
3
salt/docker/files/iptables-disabled.conf
Normal file
3
salt/docker/files/iptables-disabled.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --iptables=false
|
||||
@@ -20,6 +20,17 @@ dockerheldpackages:
|
||||
- hold: True
|
||||
- update_holds: True
|
||||
|
||||
#disable docker from managing iptables
|
||||
iptables_disabled:
|
||||
file.managed:
|
||||
- name: /etc/systemd/system/docker.service.d/iptables-disabled.conf
|
||||
- source: salt://docker/files/iptables-disabled.conf
|
||||
- makedirs: True
|
||||
cmd.run:
|
||||
- name: systemctl daemon-reload
|
||||
- onchanges:
|
||||
- file: iptables_disabled
|
||||
|
||||
# Make sure etc/docker exists
|
||||
dockeretc:
|
||||
file.directory:
|
||||
|
||||
Reference in New Issue
Block a user