Last active
December 15, 2015 16:19
-
-
Save niallo/5288738 to your computer and use it in GitHub Desktop.
docker shell interaction oddity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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