Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 406 Bytes

README.md

File metadata and controls

5 lines (5 loc) · 406 Bytes

docker-pause.sh

Docker pause script in bash. Use this script if your docker container runs in the Dockerfile at the end a CMD command with a bash shell script which waits at the end infinitely long. Simply append the code of this script to your bash shell script that the "docker stop" command exits immediately. Otherwise your script will end after a timeout of 10 seconds of the "docker stop" command.