title: ERROR: for app Cannot start service app: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused
body: <p>When I run <code>docker-compose -f docker-compose.development.yml up</code> I am getting an error:</p>
  <pre class="lang-none prettyprint-override"><code>Starting XXXX_app_1 ... 
  Starting XXXX_app_1
  xxxxx_memcached_1 is up-to-date
  xxxxx_daemon_1 is up-to-date
  Starting XXXX_db_1 ... 
  Starting elasticsearch ... 
  Starting XXXX_db_1
  xxxxx_redis_1 is up-to-date
  Starting XXXX_app_1 ... error
  
  ERROR: for XXXXX_app_1  Cannot start service app: failed to create shim: OCI runtime create failed: container_linux.go:380: starting contaStarting elasticsearch ... done
  xxxxx_kibana_1 is up-to-date
  
  ERROR: for app  Cannot start service app: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: &quot;/bin/sh&quot;: stat /bin/sh: no such file or directory: unknown
  ERROR: Encountered errors while bringing up the project.
  </code></pre>
  <p>The <code>docker-compose.yml</code> file contains:</p>
  <pre class="lang-yaml prettyprint-override"><code>version: '2'
  services:
    app:
      build:
        context: .
        dockerfile: docker/Dockerfile
        args:
          HOST_IP: &quot;${HOST_IP}&quot;
      ports:
        - &quot;${DOCKER_APP_PORT}:80&quot;
        - &quot;${DOCKER_APPS_PORT}:443&quot;
      environment:
        - PHP_IDE_CONFIG=&quot;idekey=PHPSTORM&quot;
        - REDIS_SAVE_PATH=tcp://redis:6379
      volumes:
        - ./:/var/www/html:delegated
      working_dir: /var/www/html
   https://stackoverflow.com/posts/70847658/edit# daemon:
      image: newrelic/php-daemon
    redis:
      image: redis:5.0.3
      ports:
        - &quot;6379:6379&quot;
    memcached:
      image: memcached:1.5.12
    db:
      image: mysql:5.6
      environment:
        MYSQL_ROOT_PASSWORD: ****
        MYSQL_DATABASE: db
        MYSQL_USER: ****
        MYSQL_PASSWORD: ****
      volumes:
        - ./:/tmp/tmp
        - ./mysql-data/:/var/lib/mysql
      ports:
        - &quot;${DOCKER_DB_PORT}:3306&quot;
      working_dir: /var/lib/mysql
    elasticsearch:
      image: elasticsearch:6.7.2
      container_name: elasticsearch
      environment:
        - cluster.name=docker-cluster
        - bootstrap.memory_lock=true
        - &quot;ES_JAVA_OPTS=-Xms512m -Xmx512m&quot;
      ulimits:
        memlock:
          soft: -1
          hard: -1
      volumes:
        - esdata1:/usr/share/elasticsearch/data
      ports:
        - &quot;${ES_PORT}:9200&quot;
    kibana:
      image: kibana:6.7.2
      ports:
        - &quot;${KIBANA_PORT}:5601&quot;
      depends_on:
        - elasticsearch
  volumes:
    XXXX_data:
      driver: &quot;local&quot;
    esdata1:
      driver: &quot;local&quot;
  </code></pre>
  <p>The image is based on a custom Dockerfile:</p>
  <pre class="lang-sh prettyprint-override"><code>FROM custom/app:latest
  
  
  ADD docker/apache-php/conf/custom.apache.conf /etc/apache2/conf-enabled/
  ADD docker/apache-php/conf/custom.ini /usr/local/etc/php/cli/conf.d/
  ADD docker/apache-php/conf/custom.ini /usr/local/etc/php/apache/conf.d/
  ADD docker/apache-php/conf/custom.ini /usr/local/etc/php/conf.d/
  
  ARG HOST_IP=host.docker.internal
  
  RUN     pecl install xdebug-2.7.0beta1 &amp;&amp; docker-php-ext-enable xdebug \
          &amp;&amp; echo &quot;xdebug.remote_enable=on&quot; &gt;&gt; /usr/local/etc/php/conf.d/xdebug.ini \
          &amp;&amp; echo &quot;xdebug.remote_autostart=on&quot; &gt;&gt; /usr/local/etc/php/conf.d/xdebug.ini \
          &amp;&amp; echo &quot;xdebug.remote_host=$HOST_IP&quot; &gt;&gt; /usr/local/etc/php/conf.d/xdebug.ini \
          &amp;&amp; echo &quot;opcache.enable=0&quot; &gt;&gt; /usr/local/etc/php/conf.d/custom.ini \
          &amp;&amp; rm -rf /var/lib/apt/lists/*
  </code></pre>