Skip to content

Instantly share code, notes, and snippets.

@tobynet
Created February 16, 2014 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobynet/9034123 to your computer and use it in GitHub Desktop.
Save tobynet/9034123 to your computer and use it in GitHub Desktop.
Trying Docker with CoreOS and Vagrant
#!/usr/bin/env bash
set -o xtrace # For debugging. ( abbr. set -x )
set -o errexit # To exit on error. ( abbr. set -e )
set -o pipefail # To exit on error in pipe
set -o nounset # To exit when the script to use undeclared variables (abbr. set -u)
TARGET_DIR=docker-using-coreos
if [ -d "$TARGET_DIR/.git"]; then
git clone https://github.com/coreos/coreos-vagrant "$TARGET_DIR"
fi
cd "$TARGET_DIR"
vagrant up
vagrant ssh -c 'cat /etc/lsb-release'
vagrant ssh -c 'docker run -t -i ubuntu:13.10 bash -c "cat /etc/lsb-release"'
echo 'DONE!!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment