Merge "Use the ONF registry as the docker hub's mirror site"
diff --git a/packer/provision/basebuild.sh b/packer/provision/basebuild.sh
index f31d174..429ea8e 100644
--- a/packer/provision/basebuild.sh
+++ b/packer/provision/basebuild.sh
@@ -414,6 +414,14 @@
mv /tmp/yq /usr/local/bin/yq
chmod -R a+rx /usr/local/bin/yq
+ # add docker cache
+ cat << EOF > /etc/docker/daemon.json
+{
+ "registry-mirrors":["https://mirror.registry.opennetworking.org"]
+}
+EOF
+ service docker restart
+
# remove apparmor
service apparmor stop
update-rc.d -f apparmor remove