Fail when no command provided with shell enabled in docker.

Review: https://reviews.apache.org/r/24987
Merge branch 'master' into stout-path-to-variad