Fail when no command provided with shell enabled in docker.

Review: https://reviews.apache.org/r/24987