PhpStorm 2017.1 remote php-cli in docker: Configuration php.ini file does not exist

PhpStorm PHP CLI interpreters

PHSTORM

There are two error infos:

  • What is the reason behind openshift error invalid ImageStreamTag?
  • How do I update Gemfile.lock on my Docker host?
  • how to choose pxe setup in deploying OPNFV ARNO via Fuel (master node)?
  • Can't find .bin file generated by app inside docker container
  • how to make docker logs in java
  • Cannot install Django on docker
    1. Can not find php.ini
    2. Can not find xdebug.so

    PHP container

    But in my PHP container

    php container

    /usr/local/etc/php/php.ini exist
    /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so exist

    PHP Dockerfile

    FROM php:5.6-fpm
    
    COPY ./sources.list /etc/apt/sources.list
    
    # Init EVN
    RUN apt-get update && apt-get upgrade && apt-get install -y \
            vim \
            git \
            libgearman-dev \
            libmemcached-dev \
            libmcrypt-dev \
            libfreetype6-dev \
            libjpeg62-turbo-dev \
            libpng12-dev \
            libpng-dev \
            libmagickwand-dev \
            libmagickcore-dev
    
    # Install PHP extensions
    COPY ./extensions/* /home/
    RUN docker-php-ext-configure gd --enable-gd-native-ttf --with-ttf --with-gettext --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ \
            && docker-php-ext-install -j$(nproc) iconv mcrypt mbstring pdo_mysql zip gd bcmath soap xmlrpc \
            && pecl install /home/memcache-3.0.8.tgz && docker-php-ext-enable memcache \
            && pecl install /home/memcached-2.2.0.tgz && docker-php-ext-enable memcached \
            && pecl install /home/gearman-1.1.2.tgz && docker-php-ext-enable gearman \
            && pecl install /home/redis-2.2.8.tgz && docker-php-ext-enable redis \
            && pecl install /home/msgpack-0.5.7.tgz && docker-php-ext-enable msgpack \
            && pecl install /home/xhprof-0.9.4.tgz && docker-php-ext-enable xhprof \
            && pecl install /home/xdebug-2.4.1.tgz
    
    
    # PHP config
    ADD php.ini.dev /usr/local/etc/php/php.ini
    ADD php-fpm.conf /usr/local/etc/php-fpm.conf
    ADD docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
    
    # Composer
    ADD composer.phar /usr/local/bin/composer
    RUN chmod 755 /usr/local/bin/composer
    

  • gcsfuse gives a Input/output error when reading or writing to mounted directory in docker
  • rolling deployment for docker containers behind load balancer
  • Modify Node stack trace paths for use in Docker containers
  • How to create Dockerfile which installs Python 3 and nltk in a Ubuntu container?
  • How to add a mount on a docker swarm service with the specified owner
  • I can not remove a directory in a docker container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.