From 3db1b7f265a55c2fab996b792dd70417d3d0c36b Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Wed, 25 Oct 2017 20:41:50 +0200 Subject: [PATCH] Allow running any command inside the container via the docker entrypoint script. This allows running generic things like opening a bash shell: docker-compose run server bash --- bin/docker-entrypoint | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint index 10cbb9f4..5121103e 100755 --- a/bin/docker-entrypoint +++ b/bin/docker-entrypoint @@ -72,7 +72,10 @@ case "$1" in tests) tests ;; - *) + help) help ;; + *) + exec "$@" + ;; esac