title: Dockerfile Mysql - Errors were encountered while processing
body: <p>i'm trying to install mysql in my docker application but i'm facing with an error in my Dockerfile when running "docker-compose build".</p>
  
  <p><strong>My docker-compose.yml :</strong></p>
  
  <pre><code>services:
  
    database:
      container_name: mysql_database  
      build: ./docker/mysql
      command: --max_allowed_packet=256M
      environment:
        MYSQL_ROOT_PASSWORD: root
        MYSQL_DATABASE: root
        MYSQL_PASSWORD: root
        MYSQL_CHARSET: utf8
        MYSQL_COLLATION: utf8
  </code></pre>
  
  <p><strong>My Dockerfile:</strong></p>
  
  <pre><code>FROM mysql:5.7
  
  # Install packages
  RUN apt-get update --yes &amp;&amp; apt-get install --yes procps
  RUN apt-get install --yes \
      apt-utils \
      curl \
      git \
      htop \
      man \
      mlocate \
      mysql-client \
      zlib1g-dev \
      zip \
      unzip \
      vim \
      wget
  
  COPY root/.vimrc /root/.vimrc
  COPY root/.bashrc /root/.bashrc
  
  WORKDIR /var/lib/mysql
  </code></pre>
  
  <p><strong>ERROR displayed :</strong></p>
  
  <pre><code>Errors were encountered while processing:
   mysql-community-server
   mysql-server
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  ERROR: Service 'database' failed to build: The command '/bin/sh -c apt-get install --yes     apt-utils     curl     git     htop     man     mlocate     mysql-client     zlib1g-dev     zip     unzip     vim     wget' returned a non-zero code: 100
  </code></pre>
  
  <p>What's wrong with my config or commands ?</p>