Skip to content

Instantly share code, notes, and snippets.

@armon
Created August 27, 2013 18:27
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 armon/6357180 to your computer and use it in GitHub Desktop.
Save armon/6357180 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
CONTAINER=`docker run -d ubuntu:precise echo test`
OUTPUT=`docker logs $CONTAINER`
echo \"$OUTPUT\" should be \"test\"
CONTAINER=`docker run -d ubuntu:precise echo test`
sleep 1
OUTPUT=`docker logs $CONTAINER`
echo \"$OUTPUT\" should be \"test\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment