Fail when no command provided with shell enabled in docker.

Review: https://reviews.apache.org/r/24987
Fixed MasterZooKeeperTest.LostZooKeeperCluster.

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