Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

keep the container running and not exit directly

# add this at the end of your entrypoint file
# to keep the container running and not exit directly
set -x
while $1
do
    echo "Press [CTRL+C] to stop.."
    sleep 5
    echo "My second and third argument is $2 & $3"
done
 
PREVIOUS NEXT
Tagged: #container #running #exit
ADD COMMENT
Topic
Name
9+6 =