Hello,

I'm in the process of learning Docker. I'm trying to install aegir in a container and it fails.
I'm unable to debug and I would like to have some insights and help on how to find where it fails.

You can find my Docker repository here: https://github.com/Polzme/docker-aegir-mariadb and review the whole log from here: http://pastebin.com/RrV6GfDW

Here is the relevant part of the log:

The 'aegir client' role was assigned the following permissions: 'access content', 'view revisions'.                                                [status]
The 'aegir account manager' role was assigned the following permissions: 'access content', 'access user profiles'.                                 [status]
The 'aegir platform manager' role was assigned the following permissions: 'access content', 'view revisions'.                                      [status]
The 'aegir administrator' role was assigned the following permissions: 'access administration menu', 'access content', 'view             [status]
revisions', 'access user profiles'.
Configuring default blocks                                                                                                                                   [status]
Drush was not able to start (bootstrap) the Drupal database.                                                                                                 [error]
Hint: This may occur when Drush is trying to:
 * bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database
setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for details.
 * connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See
http://drupal.org/node/1428638 for details.

Drush was attempting to connect to: 
 Drupal version         :  7.34                                                                                                                             
 Site URI               :  aegir.docker.localhost                                                                                                           
 Default theme          :  garland                                                                                                                          
 Administration theme   :  garland                                                                                                                          
 PHP executable         :  /usr/bin/php                                                                                                                     
 PHP configuration      :  /etc/php5/cli/php.ini                                                                                                            
 PHP OS                 :  Linux                                                                                                                            
 Drush version          :  6.2.0                                                                                                                            
 Drush configuration    :  /var/aegir/hostmaster-7.x-3.x/sites/aegir.docker.localhost/drushrc.php /var/aegir/hostmaster-7.x-3.x/sites/all/drush/drushrc.php 
 Drush alias files      :  /var/aegir/.drush/hm.alias.drushrc.php /var/aegir/.drush/hostmaster.alias.drushrc.php                                            
                           /var/aegir/.drush/platform_hostmaster.alias.drushrc.php /var/aegir/.drush/server_localhost.alias.drushrc.php                     
                           /var/aegir/.drush/server_master.alias.drushrc.php                                                                                
 Drupal root            :  /var/aegir/hostmaster-7.x-3.x                                                                                                    
 Site path              :  sites/aegir.docker.localhost                                                                                                     
 File directory path    :  sites/aegir.docker.localhost/files                                                                                               


Generated config in write(): Drupal sites.php file (/var/aegir/hostmaster-7.x-3.x/sites/sites.php)                                                           [success]
Changed permissions of /var/aegir/hostmaster-7.x-3.x/sites/sites.php to 644        

To reproduce the error with Docker installed:

Start: ./Docker_build.sh
Then: ./Docker_run.sh
Then: ./run.sh

Do you think the problem is coming from the installation script or Aegir ?
I tried Aegir 7.x-2.x also, I get the same error.

I've also posted this issue in the queue of the original repository: https://github.com/DominicBoettger/docker-aegir-mariadb/issues/3

Thanks.