Skip to content

Instantly share code, notes, and snippets.

@jschneiderhan
Created August 18, 2014 19:50
Show Gist options
  • Save jschneiderhan/2043b2af23291b405535 to your computer and use it in GitHub Desktop.
Save jschneiderhan/2043b2af23291b405535 to your computer and use it in GitHub Desktop.
# 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