my drush version:
Drush Version : 7.0.0-alpha9 and running drush cc all command returns this error:
exception [error]
'Drupal\Core\DependencyInjection\ContainerNotInitializedException'
with message '\Drupal::$container is not initialized yet.
\Drupal::setContainer() must be called with a real container.' in
/Library/WebServer/Documents/drupal-8/core/lib/Drupal.php:129
Stack trace:
#0 /Library/WebServer/Documents/drupal-8/core/lib/Drupal.php(454):
Drupal::getContainer()
#1 /usr/local/bin/drush/commands/core/views.d8.drush.inc(458):
Drupal::moduleHandler()
#2 [internal function]: views_drush_cache_clear(Array)
#3 /usr/local/bin/drush/includes/command.inc(1294):
call_user_func_array('views_drush_cac...', Array)
#4 /usr/local/bin/drush/commands/core/cache.drush.inc(238):
drush_command_invoke_all_ref('drush_cache_cle...', Array)
#5 /usr/local/bin/drush/commands/core/cache.drush.inc(100):
drush_cache_clear_types(false)
#6 [internal function]: drush_cache_clear_pre_validate('all')
#7 /usr/local/bin/drush/includes/command.inc(359):
call_user_func_array('drush_cache_cle...', Array)
#8 /usr/local/bin/drush/includes/command.inc(210):
_drush_invoke_hooks(Array, Array)
#9 [internal function]: drush_command('all')
#10 /usr/local/bin/drush/includes/command.inc(178):
call_user_func_array('drush_command', Array)
#11 /usr/local/bin/drush/lib/Drush/Boot/DrupalBoot.php(68):
drush_dispatch(Array)
#12 /usr/local/bin/drush/drush.php(71):
Drush\Boot\DrupalBoot->bootstrap_and_dispatch()
#13 /usr/local/bin/drush/drush.php(11): drush_main()
#14 {main}