Trying to run php-fpm on Docker

I´m following this tutorial about setting up my own LEMP server with Docker. The author of the tutorial uses the following line in the Dockerfile:

RUN docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) iconv gd mbstring fileinfo curl xmlreader xmlwriter spl ftp mysqli

But it keeps throwing me the following error:

  • sbin/start-stop-daemon not able to start python - ubuntu docker container
  • running auditd in docker container
  • Custom application directory in PHP-FPM container
  • Unable to run mariadb when mount volume
  • docker exec command not executing in sh file
  • Docker Compose Link (Alias)
  •    Step 3 : RUN docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)
       ---> Running in 4067237685be
       usage: /usr/local/bin/docker-php-ext-install [-jN] ext-name [ext-name ...]
       ie: /usr/local/bin/docker-php-ext-install gd mysqli
       /usr/local/bin/docker-php-ext-install pdo pdo_mysql
       /usr/local/bin/docker-php-ext-install -j5 gd mbstring mysqli pdo pdo_mysql shmop
       if custom ./configure arguments are necessary, see docker-php-ext-configure
       Possible values for ext-name:
       bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv      imap interbase intl json ldap mbstring mcrypt mysqli oci8 odbc opcache pcntl pdo pdo_dblib         
       pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline   
       recode reflection session shmop simplexml snmp soap sockets spl standard sysvmsg sysvsem 
       sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip

    I’m on OSX El Capitan, using Docker for Mac beta, anybody knows why this seems to work for the author but not for me?

  • Docker rancher/agent won't start
  • How to serve static content in a Node Express container with Docker?
  • Manage docker environment for Swarm running cluster with UPC
  • docker expose ports only on host
  • Jenkins docker plugin with docker slaves
  • Run docker build in ubuntu:16.04 docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.