What does set -e and exec “$@” do for docker entrypoint scripts?

It basically takes any command line arguments passed to entrypoint.sh and execs them as a command. The intention is basically “Do everything in this .sh script, then in the same shell run the command the user passes in on the command line”.

See:

  • What are the special dollar sign shell variables?
  • Need explanations for Linux bash builtin exec command behavior

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)