Pull base image at the beginning.

This commit is contained in:
Shuai Lin 2016-11-25 14:18:43 +08:00
parent b2e7e7f499
commit 5061545995

View file

@ -131,6 +131,12 @@ bootstrap() {
err_and_quit "The file $bootstrap_conf doesn't exist. Have you run seafile-server-setup?" err_and_quit "The file $bootstrap_conf doesn't exist. Have you run seafile-server-setup?"
fi 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 # First initialize seafile server and letsencrypt
set_bootstrap_volumes set_bootstrap_volumes
set_ports set_ports