Skip to content

Instantly share code, notes, and snippets.

@Merwanski
Created December 8, 2021 09:45
Show Gist options
  • Save Merwanski/7c4c7872e0dfaa6c7e96f7b3e9bf4e06 to your computer and use it in GitHub Desktop.
Save Merwanski/7c4c7872e0dfaa6c7e96f7b3e9bf4e06 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment