title: Why I have tidy is missing error runi ng docker container
body: <p>I create docker container for Laravel 5.5.18 app
  with next options in web/Dockerfile.yml :</p>
  
  <pre><code>FROM php:7.1-apache
  
  RUN apt-get update -y &amp;&amp; apt-get install -y sendmail libpng-dev  libtidy-dev libtidy5 libtidy-dev  tidy
  
  RUN docker-php-ext-install \
      pdo_mysql \
      gd \
      tidy \
      &amp;&amp; a2enmod \
      rewrite \
      docker-php-ext-enable ext-tidy
  </code></pre>
  
  <p>and running:</p>
  
  <pre><code>$ docker-compose up -d 
  lprods_products_catalog is up-to-date
  lprods_docker_adminer_1 is up-to-date
  lprods_docker_db_1 is up-to-date
  Starting lprods_docker_composer_1 ... done
  </code></pre>
  
  <p>I see next errors in composer log:</p>
  
  <pre><code>$ docker logs --tail=20  lprods_docker_composer_1
      - /usr/local/etc/php/conf.d/date_timezone.ini
      - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
      - /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
      - /usr/local/etc/php/conf.d/memory-limit.ini
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
  Loading composer repositories with package information
  Installing dependencies (including require-dev) from lock file
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - Installation request for stolz/laravel-html-tidy 0.1.1 -&gt; satisfiable by stolz/laravel-html-tidy[0.1.1].
      - stolz/laravel-html-tidy 0.1.1 requires ext-tidy * -&gt; the requested PHP extension tidy is missing from your system.
  
    To enable extensions, verify that they are enabled in your .ini files:
      - 
      - /usr/local/etc/php/conf.d/date_timezone.ini
      - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
      - /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
      - /usr/local/etc/php/conf.d/memory-limit.ini
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
  </code></pre>
  
  <p>I added tidy  php-tidy in RUN command...
  It did not call error(I mean syntax error or nonexisting package) but I still have error in logs.</p>
  
  <p>1) Which is the right way?</p>
  
  <p>2) Which is the right way to clear docker logs ? I use option</p>
  
  <pre><code>--tail=20
  </code></pre>
  
  <p>to show last 20 lines, but actually I am not sure, if I see some errors(like mentioned above) are these errors 
  from my LAST command or they are left from my prior commands ?</p>
  
  <p>composer.json of my project :</p>
  
  <pre><code>{
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "php": "&gt;=5.6.4",
          "barryvdh/laravel-debugbar": "^2.3",
          "graham-campbell/markdown": "^8.0",
          "intervention/image": "^2.3",
          "khill/lavacharts": "3.0.*",
          "laravel/framework": "5.5.*",
          "laravel/socialite": "^3.0",
          "laravel/tinker": "~1.0",
          "laravelcollective/html": "^5.4.0",
          "nwidart/laravel-modules": "^2.2",
          "wboyz/laravel-enum": "^0.2.1"
      },
      "require-dev": {
          "fzaninotto/faker": "~1.4",
          "mockery/mockery": "0.9.*",
          "phpunit/phpunit": "~6.0",
          "stolz/laravel-html-tidy": "^0.1.1",
          "xethron/migrations-generator": "^2.0",
          "filp/whoops" : "~2.0" 
      },
      "autoload": {
          "classmap": [
              "database"
          ],
          "psr-4": {
              "App\\": "app/",
              "Modules\\": "Modules/"
          }
      },
      "autoload-dev": {
          "psr-4": {
              "Tests\\": "tests/"
          }
      },
      "scripts": {
          "post-root-package-install": [
              "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
          ],
          "post-create-project-cmd": [
              "php artisan key:generate"
          ],
          "post-install-cmd": [
              "Illuminate\\Foundation\\ComposerScripts::postInstall",
              "php artisan optimize"
          ],
          "post-update-cmd": [
              "Illuminate\\Foundation\\ComposerScripts::postUpdate",
              "php artisan optimize"
          ],
  
          "post-autoload-dump": [
              "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
              "@php artisan package:discover"
          ]
  
      },
      "config": {
          "preferred-install": "dist",
          "sort-packages": true,
          "optimize-autoloader": true
      }
  }
  </code></pre>
  
  <p>Thanks!</p>