Last active
August 29, 2015 14:06
-
-
Save parente/15c363856c935777aef8 to your computer and use it in GitHub Desktop.
CMD / ENTRYPOINT study
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
| FROM busybox | |
| ENV name1 value1 | |
| ENTRYPOINT ["ls"] | |
| CMD /bin/sh | |
| CMD ["/bin/sh"] | |
| CMD ls | |
| CMD -l | |
| EXPOSE 1234 | |
| ENV name2 value2 |
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
| { "Size" : 0, | |
| "architecture" : "amd64", | |
| "config" : { "AttachStderr" : false, | |
| "AttachStdin" : false, | |
| "AttachStdout" : false, | |
| "Cmd" : [ "/bin/sh", | |
| "-c", | |
| "-l" | |
| ], | |
| "CpuShares" : 0, | |
| "Cpuset" : "", | |
| "Domainname" : "", | |
| "Entrypoint" : [ "ls" ], | |
| "Env" : [ "HOME=/", | |
| "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | |
| "name1=value1", | |
| "name2=value2" | |
| ], | |
| "ExposedPorts" : { "1234/tcp" : { } }, | |
| "Hostname" : "f7d939e68b5a", | |
| "Image" : "e4c47f2ffeac651bd43139a09278f8a0a120108ba25f9908b10342c3a95108c9", | |
| "Memory" : 0, | |
| "MemorySwap" : 0, | |
| "NetworkDisabled" : false, | |
| "OnBuild" : [ ], | |
| "OpenStdin" : false, | |
| "PortSpecs" : null, | |
| "StdinOnce" : false, | |
| "Tty" : false, | |
| "User" : "", | |
| "Volumes" : null, | |
| "WorkingDir" : "" | |
| }, | |
| "container" : "6a64a9bd89ce0f51ddba6260307d28f31f33c6f442e91622e7bb32397f84e4a1", | |
| "container_config" : { "AttachStderr" : false, | |
| "AttachStdin" : false, | |
| "AttachStdout" : false, | |
| "Cmd" : [ "/bin/sh", | |
| "-c", | |
| "#(nop) ENV name2=value2" | |
| ], | |
| "CpuShares" : 0, | |
| "Cpuset" : "", | |
| "Domainname" : "", | |
| "Entrypoint" : [ "ls" ], | |
| "Env" : [ "HOME=/", | |
| "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | |
| "name1=value1", | |
| "name2=value2" | |
| ], | |
| "ExposedPorts" : { "1234/tcp" : { } }, | |
| "Hostname" : "f7d939e68b5a", | |
| "Image" : "e4c47f2ffeac651bd43139a09278f8a0a120108ba25f9908b10342c3a95108c9", | |
| "Memory" : 0, | |
| "MemorySwap" : 0, | |
| "NetworkDisabled" : false, | |
| "OnBuild" : [ ], | |
| "OpenStdin" : false, | |
| "PortSpecs" : null, | |
| "StdinOnce" : false, | |
| "Tty" : false, | |
| "User" : "", | |
| "Volumes" : null, | |
| "WorkingDir" : "" | |
| }, | |
| "created" : "2014-09-04T18:41:52.84618525Z", | |
| "docker_version" : "1.1.2", | |
| "id" : "907974ccf0eb0e5a87468669f4b2d181e475a30fca69cf50d82cff2d9000da1a", | |
| "os" : "linux", | |
| "parent" : "e4c47f2ffeac651bd43139a09278f8a0a120108ba25f9908b10342c3a95108c9" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment