Which cache bin to clear after changing services I made some changes to own services and now I get an error about invalid arguments. When I clear all caches everything works fine. I don't want to clear all caches in my production environment. Which cache bin (and how) do I need to clear? I use drupal console. I tried 'drupal cache:rebuild container' but I get a message 'Cache container is invalid'.
Drupal Console uses Cache::getBins() for its list of valid cache bins - that method returns all services in the main container tagged with cache.bin. The container cache service is part of the bootstrap container, which is managed internally by DrupalKernel.

I haven't dug deep enough to know for sure, but keeping the management of that bin internal seems to be deliberate, so there's probably no simple (maybe even no desirable) way to hack around it.

Fortunately, a custom plugin for Console is easy to create with drupal generate:command (there's a tutorial here). Just be sure to inject the kernel service, and call $this-&gt;kernel-&gt;invalidateContainer(); in the command 's action callback.