solana/net/scripts/remove-docker-interface.sh

13 lines
294 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ex
2018-11-07 17:42:29 -08:00
#
# 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
2018-11-07 19:33:20 -08:00
ip link delete docker0 || true