docker: rebuild networks upon restart

This commit is contained in:
Tom Mortensen
2018-01-22 09:29:36 -08:00
parent fd16c81506
commit 5a9b83eb0f
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# Invoked after docker image loopback mounted but before docker is started
if [[ -f /boot/config/docker.cfg ]]; then
. /boot/config/docker.cfg
[[ "$DOCKER_USER_NETWORKS" != "preserve" ]] && rm -f /var/lib/docker/network/files/local-kv.db
fi