Skip to content

Instantly share code, notes, and snippets.

@niallo
Last active December 15, 2015 16:19
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 niallo/5288738 to your computer and use it in GitHub Desktop.
Save niallo/5288738 to your computer and use it in GitHub Desktop.
docker shell interaction oddity
Hangs:
$ cat > builder.sh
apt-get update
apt-get install -y wget
wget --help
$ docker run -i -t base /bin/bash < builder.sh
Doesn't hang:
echo 'apt-get update; apt-get install -y wget; wget --help' | docker run -t -i base /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment