diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 32c0b49..e987aca 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -403,6 +403,11 @@ function install_begin_request(&$install_state) {
       ->register('keyvalue.expirable.null', 'Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory');
     $conf['keyvalue_expirable_default'] = 'keyvalue.expirable.null';
 
+    // Set the request in the container to the new created Request above
+    // so it is available to the rest of the installation process.
+    $container
+      ->set('request', $request);
+
     // Register Twig template engine for use during install.
     CoreBundle::registerTwig($container);
 
