Running Drupal in a containerized environment where you don't have any shared storage for public files? Add this to settings.php:

$settings['php_storage']['twig']['directory'] = '/tmp/drupal-storage/php';

Otherwise, this unmaintained module moves the Twig template cache to the temporary directory, removing one more dependency on the public stream wrapper. If you find a reason why this module is needed and the above won't work, feel free to open aissue.

Supporting organizations: 

Project information

Releases