title: Docker error: Cannot create container for service web: invalid mode
body: <p>I'm having three errors when i run docker:</p>
  <blockquote>
  <p>ERROR: for learningphp7_web_1  Cannot create container for service web: invalid mode: /etc/apache2/sites-enabled/virtualhosts.conf</p>
  <p>ERROR: for web  Cannot create container for service web: invalid mode: /etc/apache2/sites-enabled/virtualhosts.conf</p>
  <p>ERROR: Encountered errors while bringing up the project.</p>
  </blockquote>
  <p>How can i solve these issues and finally start using docker?</p>
  <p>My <code>virtualhosts.conf</code>:</p>
  <pre><code>&lt;VirtualHost *:80&gt;
    ServerName localhost
    DocumentRoot /var/www/html/web
    DirectoryIndex index.php
  
    &lt;Directory /var/www/html/web&gt;
      AllowOverride None
      Require all granted
      Allow from All
      Options FollowSymLinks
      &lt;IfModule mod_rewrite.c&gt;
            Options -MultiViews
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*)$ index.php [QSA,L]
      &lt;/IfModule&gt;
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>