* 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
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
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
;;