-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Change to ENTRYPOINT + CMD & exec "${@}" mechanism in dockerfiles and entrypoints.
e.g.
Dockerfile:
COPY --chmod=755 entrypoints/entrypoint_bind.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/sbin/named","-c","/etc/bind/named.conf","-f","-g"]
Entrypoint:
#!/usr/bin/env bash
exec "${@}"
(Source: https://www.docker.com/blog/docker-best-practices-choosing-between-run-cmd-and-entrypoint/ & Phind.com):
Looks like this is the best way to prevent:
- Data corruption during shutdown
- Unnecessary delay in stopping containers
- Incomplete cleanup operations
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request