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:

  • How to share data between the docker container and the host?
  • Install Docker on Jenkins on OSX
  • Run nodejs application on subpath with haproxy
  • Docker images eats up lots of space?
  • Issue when trying to write to a mounted volume from inside a container as a non-root user
  • Docker port mapping
  •    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 - mac - Layer already being pulled by another client, doesn't revolve with restarting mac or vm
  • Running a Docker Image stored in a EC2 Container Instance
  • Can I run Xcode in a docker container?
  • Does using a Docker significantly improve the IO and processing speed?
  • volume not getting mounted in nginx container
  • Kubernetes: hostPath volume does not mount
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.