From 5061545995a57df37fe10c33e3cdfc8df81fdec8 Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Fri, 25 Nov 2016 14:18:43 +0800 Subject: [PATCH] Pull base image at the beginning. --- launcher | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/launcher b/launcher index 69aaf41..2d1d97e 100755 --- a/launcher +++ b/launcher @@ -131,6 +131,12 @@ bootstrap() { err_and_quit "The file $bootstrap_conf doesn't exist. Have you run seafile-server-setup?" fi + docker history $image >/dev/null 2>&1 || { + show_progress "Pulling Seafile server image $version, this may take a while." + docker pull $image + show_progress "Seafile server image $version pulled" + } + # First initialize seafile server and letsencrypt set_bootstrap_volumes set_ports