From 38c09f5ec31beb0463c6a78216f582b96cf3f965 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 21 Jan 2014 01:06:26 -0500 Subject: [PATCH] Make the user experience nicer * Pull down the docker image before trying to use it This avoids long periods of "is the system doing anything?" * Don't bother asking the user to confirm the container's ssh key --- launcher | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launcher b/launcher index 851ad4c..a6dbe6d 100755 --- a/launcher +++ b/launcher @@ -118,6 +118,9 @@ fi case "$command" in bootstrap) + # Is the image available? + # If not, pull it here so the user is aware what's happening. + docker history $image >/dev/null 2>&1 || docker pull $image set_template_info @@ -165,7 +168,7 @@ case "$command" in cid="`cat $cidfile`" address="`docker port $cid 22`" split=(${address//:/ }) - exec ssh root@${split[0]} -p ${split[1]} + exec ssh -o StrictHostKeyChecking=no root@${split[0]} -p ${split[1]} fi ;; -- 2.25.1