Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
23
Help us understand the problem. What is going on with this article?
@saken649

Dockerfileに書けるPHP Extensionsメモ

More than 3 years have passed since last update.

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イメージのページの通りに、別途記載が必要なようです。

23
Help us understand the problem. What is going on with this article?
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
saken649
PHP, Node.js, C#, AWS, 作曲。今の仕事ではRails。そんなエンジニアです。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
23
Help us understand the problem. What is going on with this article?