Skip to content

Instantly share code, notes, and snippets.

@damonYuan
Forked from thockin/docker exec vs cmd modes
Created January 29, 2020 06:36
Show Gist options
  • Save damonYuan/3d0c84896a079e98596366994c49c1cc to your computer and use it in GitHub Desktop.
Save damonYuan/3d0c84896a079e98596366994c49c1cc to your computer and use it in GitHub Desktop.
```
| No ENTRYPOINT | ENTRYPOINT entry | ENTRYPOINT ["entry"] |
------------+-----------------+------------------------------ ---+-----------------------|
No CMD | <error> | /bin/sh -c entry | entry |
CMD cmd | /bin/sh -c cmd | /bin/sh -c entry /bin/sh -c cmd | entry /bin/sh -c cmd |
CMD ["cmd"] | cmd | /bin/sh -c entry cmd | entry cmd |
------------------------------------------------------------------------------------------
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment