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:

  • Can't get remote Hazelcast client to connect to cluster running in docker containers
  • Docker - sh service script dont take options
  • How to make communication between two docker containers running on two different hosts?
  • Accessing Elastic Beanstalk environment properties in Docker
  • Connect Symfony project to docker database
  • Connection refused by Docker container
  •    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?

  • How to share localhost between two different Docker containers?
  • Does docker stores all its files as “memory image”, as part of image, not disk file?
  • Committing a running docker container (with pause), then run it, what's the images internal state
  • Unable to run docker image created from ISO
  • Jenkins Slave can't read settings.xml
  • bootstrapping a node using chef
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.