Difference between revisions of "ENTRYPOINT"

From wikieduonline
Jump to navigation Jump to search
 
(5 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 ["/bin/bash", "[[bash -c|-c]]", "echo hello"]
  
 
  ENTRYPOINT [[service ssh restart]] && bash
 
  ENTRYPOINT [[service ssh restart]] && bash
  
 
  [[COPY]] ./docker-entrypoint.sh /
 
  [[COPY]] ./docker-entrypoint.sh /
  ENTRYPOINT]] ["/docker-entrypoint.sh"]
+
  ENTRYPOINT ["/docker-entrypoint.sh"]
 
  [[CMD]] ["postgres"]
 
  [[CMD]] ["postgres"]
  
Line 25: Line 29:
  
 
== See also ==
 
== See also ==
 +
* {{ENTRYPOINT}}
 
* {{container_definitions}}
 
* {{container_definitions}}
 
* {{RUN}}
 
* {{RUN}}

Latest revision as of 08:34, 22 October 2024

ENTRYPOINT ["myappthatworks"]
ENTRYPOINT ["executable", "param1", "param2"]
ENTRYPOINT command param1 param2
ENTRYPOINT "myappwillnotwork"
Ref: https://github.com/GoogleContainerTools/distroless
ENTRYPOINT ["/bin/bash", "-c", "echo hello"]
ENTRYPOINT service ssh restart && bash
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["postgres"]

Related[edit]

See also[edit]

Advertising: