Difference between revisions of "ENTRYPOINT"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
* https://docs.docker.com/engine/reference/builder/#entrypoint
 
* https://docs.docker.com/engine/reference/builder/#entrypoint
  
 +
ENTRYPOINT ["myappthatworks"]
  
  ENTRYPOINT ["myappthatworks"]
+
  ENTRYPOINT ["executable", "param1", "param2"]
 +
 
 +
ENTRYPOINT command param1 param2
  
 
  ENTRYPOINT "myappwillnotwork"
 
  ENTRYPOINT "myappwillnotwork"
 
  Ref: https://github.com/GoogleContainerTools/distroless
 
  Ref: https://github.com/GoogleContainerTools/distroless
 +
 +
 +
ENTRYPOINT [[service ssh restart]] && bash
 +
 +
[[COPY]] ./docker-entrypoint.sh /
 +
ENTRYPOINT ["/docker-entrypoint.sh"]
 +
[[CMD]] ["postgres"]
  
 
== Related ==
 
== Related ==
Line 18: Line 28:
  
 
== See also ==
 
== See also ==
 +
* {{container_definitions}}
 
* {{RUN}}
 
* {{RUN}}
 
* {{Dockerfile}}
 
* {{Dockerfile}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 09:57, 13 December 2023

Advertising: