title: Docker: error creating aufs mount to /var/lib/docker/aufs/mnt/15396ee0f38d161382f104e11c94b6ca0efafe10f9952e1dfba4f548009fbe59-init: invalid argument
body: <p>I'm trying to build a Docker vm and continuously get this error:</p>
  
  <blockquote>
    <p>error creating aufs mount to /var/lib/docker/aufs/mnt/15396ee0f38d161382f104e11c94b6ca0efafe10f9952e1dfba4f548009fbe59-init:
    invalid argument</p>
  </blockquote>
  
  <p>I'm on Ubuntu 14 using Docker version 1.11.2, build b9f10c9.
  Here is the code for the Dockerimage:</p>
  
  <pre><code>FROM ubuntu:trusty
  MAINTAINER Fernando Mayo &lt;fernando@tutum.co&gt;, Feng Honglin &lt;hfeng@tutum.co&gt;
  # Install packages
  ENV DEBIAN_FRONTEND noninteractive
  RUN apt-get update &amp;&amp; \
    apt-get -y install vim supervisor git curl unzip apache2 libapache2-mod-php5 pwgen php-apc php5-mcrypt php5-mysql php5-curl&amp;&amp; \
    echo "ServerName localhost" &gt;&gt; /etc/apache2/apache2.conf
  
  
  # Install Composer
  RUN curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
  RUN composer global require "laravel/installer"
  ENV PATH ~/.composer/vendor/bin:$PATH
  
  # Add image configuration and scripts
  ADD start-apache2.sh /start-apache2.sh
  ADD start-mysqld.sh /start-mysqld.sh
  ADD run.sh /run.sh
  RUN chmod 755 /*.sh
  ADD my.cnf /etc/mysql/conf.d/my.cnf
  ADD supervisord-apache2.conf /etc/supervisor/conf.d/supervisord-apache2.conf
  ADD supervisord-mysqld.conf /etc/supervisor/conf.d/supervisord-mysqld.conf
  ADD php.ini /etc/php5/cli/php.ini
  ADD 000-default.conf /etc/apache2/sites-available/000-default.conf
  
  
  # config to enable .htaccess
  RUN a2enmod rewrite
  
  
  # Copy over private key, and set permissions
  ADD .ssh /root/.ssh
  
  
  # Get aws stuff
  RUN curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
  RUN unzip awscli-bundle.zip
  RUN ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
  
  
  #####This section has been moved into the run.sh to allow for cached builds that get the most up to date git repository. This is done by using ENTRYPOINT rather than RUN
  # Clone the repo
  RUN rm -rd /var/www/html
  #RUN git clone ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/Server /var/www/html
  # Set file permissions
  #RUN chmod -R 777 /var/www/html/storage 
  #RUN chmod -R 777 /var/www/html/bootstrap/cache
  ENTRYPOINT /run.sh
  ###########################################################################################
  
  
  
  
  
  # Environment variables to configure php
  ENV PHP_UPLOAD_MAX_FILESIZE 10M
  ENV PHP_POST_MAX_SIZE 10M
  
  
  
  
  EXPOSE 80 3306
  CMD ["/run.sh"]
  </code></pre>
  
  <p>How can I fix this mounting problem?</p>
  
  <p>Edit: Can running the host os on a live usb, specifically ubuntu, cause this problem?</p>
  
  <p>Also I tried the suggestions from <a href="https://stackoverflow.com/questions/30984569/error-error-creating-aufs-mount-to-when-building-dockerfile">Error: &quot;error creating aufs mount to&quot; when building dockerfile</a>
  but it didn't work. </p>