From: Michael Brown Date: Tue, 21 Jan 2014 06:06:26 +0000 (-0500) Subject: Make the user experience nicer X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=38c09f5ec31beb0463c6a78216f582b96cf3f965;p=discourse_docker.git 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 --- 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 ;;