26
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

Dockerfileに書けるPHP Extensionsメモ

Dockerfileを使ってPHPのイメージをbuildする際、

Dockerfile
RUN docker-php-ext-install pdo

などとすれば、PHPのExtensionsが導入出来ます。

さてじゃあここで追加出来るExtensionsって何ぞや、と思っていたら、
Dockerfileのビルドエラー時に一覧が出てきたので、備忘録的に記録。

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

PECL Extensions系(memcachedやredis、xdebugなど)はここには含まれないみたいなので、
DockerHubの公式PHPイメージのページの通りに、別途記載が必要なようです。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
26
Help us understand the problem. What are the problem?