Created
August 18, 2014 19:50
-
-
Save jschneiderhan/2043b2af23291b405535 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Updated CMD="" and ran `docker build .`, which resulted in a7ac85520739 | |
$ id=$(git archive master | docker run -i -a stdin a7ac85520739) | |
$ docker inspect $id | |
[{ | |
"Args": [ | |
"/bin/sh", | |
"-c", | |
"\"\"" | |
], | |
"Config": { | |
"AttachStderr": false, | |
"AttachStdin": true, | |
"AttachStdout": false, | |
"Cmd": [ | |
"/bin/sh", | |
"-c", | |
"\"\"" | |
], | |
... | |
# Whereas if I specify "" on the cmdline | |
$ id=$(git archive master | docker run -i -a stdin a7ac85520739 "") | |
$ docker inspect $id | |
[{ | |
"Args": [ | |
"" | |
], | |
"Config": { | |
"AttachStderr": false, | |
"AttachStdin": true, | |
"AttachStdout": false, | |
"Cmd": [ | |
"" | |
], | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment