Ver código fonte

Merge pull request #25012 from aanand/entrypoint-note

Add note about --entrypoint overriding default command
Sebastiaan van Stijn 9 anos atrás
pai
commit
1315573093
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      docs/reference/run.md

+ 3 - 0
docs/reference/run.md

@@ -1305,6 +1305,9 @@ or two examples of how to pass more parameters to that ENTRYPOINT:
     $ docker run -it --entrypoint /bin/bash example/redis -c ls -l
     $ docker run -it --entrypoint /usr/bin/redis-cli example/redis --help
 
+> **Note**: Passing `--entrypoint` will clear out any default command set on the
+> image (i.e. any `CMD` instruction in the Dockerfile used to build it).
+
 ### EXPOSE (incoming ports)
 
 The following `run` command options work with container networking: