diff --git a/images/base/files/usr/local/bin/entrypoint b/images/base/files/usr/local/bin/entrypoint index eb1b7005fe..73c6a26f14 100755 --- a/images/base/files/usr/local/bin/entrypoint +++ b/images/base/files/usr/local/bin/entrypoint @@ -150,8 +150,10 @@ select_iptables() { fi echo "INFO: setting iptables to detected mode: ${mode}" >&2 + if [ -x /usr/bin/update-alternatives ]; then update-alternatives --set iptables "/usr/sbin/iptables-${mode}" > /dev/null update-alternatives --set ip6tables "/usr/sbin/ip6tables-${mode}" > /dev/null + fi } enable_network_magic(){