Difference between revisions of "ENTRYPOINT"
Jump to navigation
Jump to search
(20 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | * https://docs.docker.com/engine/reference/builder/#entrypoint | ||
+ | ENTRYPOINT ["myappthatworks"] | ||
+ | |||
+ | ENTRYPOINT ["executable", "param1", "param2"] | ||
+ | |||
+ | ENTRYPOINT command param1 param2 | ||
+ | |||
+ | ENTRYPOINT "myappwillnotwork" | ||
+ | Ref: https://github.com/GoogleContainerTools/distroless | ||
+ | |||
+ | ENTRYPOINT ["/bin/bash", "[[bash -c|-c]]", "echo hello"] | ||
+ | |||
+ | ENTRYPOINT [[service ssh restart]] && bash | ||
+ | |||
+ | [[COPY]] ./docker-entrypoint.sh / | ||
+ | ENTRYPOINT ["/docker-entrypoint.sh"] | ||
+ | [[CMD]] ["postgres"] | ||
== Related == | == Related == | ||
* <code>[[RUN]]</code> | * <code>[[RUN]]</code> | ||
* <code>[[CMD]]</code> | * <code>[[CMD]]</code> | ||
− | * [[EntryPoint]] | + | * [[WORKDIR]] |
+ | * [[EntryPoint]] ([[aws ecs register-task-definition: ContainerDefinitions]]) | ||
+ | * [[Distroless]] | ||
+ | * <code>[[runc created filed]]</code> | ||
+ | * <code>[[docker run --entrypoint]]</code> | ||
+ | * [[command (Containers)]] | ||
== See also == | == See also == | ||
+ | * {{ENTRYPOINT}} | ||
+ | * {{container_definitions}} | ||
+ | * {{RUN}} | ||
* {{Dockerfile}} | * {{Dockerfile}} | ||
[[Category:Docker]] | [[Category:Docker]] |
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]
RUN
CMD
- WORKDIR
- EntryPoint (aws ecs register-task-definition: ContainerDefinitions)
- Distroless
runc created filed
docker run --entrypoint
- command (Containers)
See also[edit]
Advertising: