Remove docker0 interface if present

This commit is contained in:
Michael Vines 2018-11-07 17:42:29 -08:00
parent 82f914e0dc
commit f8f11b7f50
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
2 changed files with 13 additions and 1 deletions

View File

@ -411,8 +411,9 @@ $(
install-earlyoom.sh \
install-libssl-compatability.sh \
install-rsync.sh \
update-default-cuda.sh \
network-config.sh \
remove-docker-interface.sh \
update-default-cuda.sh \
)

View File

@ -0,0 +1,11 @@
#!/bin/bash -ex
#
# Some instances have docker running and docker0 network interface confuses
# gossip and airdrops fail. As a workaround for now simply remove the docker0
# interface
#
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
ip link delete docker0