docker_base_images | Vlad's Base Images for Docker | Continuous Deployment library
kandi X-RAY | docker_base_images Summary
kandi X-RAY | docker_base_images Summary
Vlad's Docker base images.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker_base_images
docker_base_images Key Features
docker_base_images Examples and Code Snippets
Community Discussions
Trending Discussions on docker_base_images
QUESTION
I am using a docker to watch and sync data in a folder with inotify and aws-cli but when I try to kill the docker with SIGTERM
it exit with code 143 but I want to get a zero exit code. And if i kill the inotify process inside the docker it do return a zero code.
So how can I kill the entrypoint.sh
with TERM
signal and return a 0 code?
The docker is here. I put the bash script below:
...ANSWER
Answered 2018-Jun-22 at 10:41Answered by the contributor of the docker image.
https://github.com/vladgh/docker_base_images/issues/62
This image uses Tini, which does not make any assumptions about the meaning of the signal it receives and simply forwards it to its child.
In order for your traps to work you need to add the -g flag to Tini in the Dockerfile (krallin/tini#process-group-killing):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker_base_images
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page