Docker 部署 PHP
先搜索docker search 搜索 php
[root@iZ8vb9nmgwljcf9m2wxaekZ ~]# docker search php NAME DESCRIPTION STARS OFFICIAL AUTOMATED php While designed for web development, the PHP … 6242 [OK] phpmyadmin/phpmyadmin A web interface for MySQL and MariaDB. 1139 [OK] adminer Database management in a single PHP file. 622 [OK] phpmyadmin phpMyAdmin - A web interface for MySQL and M… 359 [OK] webdevops/php-nginx Nginx with PHP-FPM 212 [OK] php-zendserver Zend Server - the integrated PHP application… 200 [OK] webdevops/php-apache-dev PHP with Apache for Development (eg. with xd… 146 [OK] webdevops/php-apache Apache with PHP-FPM (based on webdevops/php) 120 [OK] osixia/phpldapadmin phpLDAPadmin with easy configuration via env… 118 phpunit/phpunit PHPUnit is a programmer-oriented testing fra… 82 [OK] nazarpc/phpmyadmin phpMyAdmin as Docker container, based on off… 61 [OK] phpipam/phpipam-www phpIPAM is an open-source web IP address man… 53 thecodingmachine/php General-purpose ultra-configurable PHP images 39 [OK] jakzal/phpqa Docker image with quality analysis tools for… 37 [OK] erikdubbelboer/phpredisadmin Simple web interface to manage Redis databas… 34 [OK] chialab/php Adding common PHP extensions to some of the … 29 [OK] devilbox/php-fpm PHP-FPM Docker images based on original PHP … 26 phpstan/phpstan Docker container to check your application w… 19 [OK] phpdockerio/php7-fpm PHP 7 FPM base container for PHPDocker.io. 19 [OK] phpdockerio/php73-fpm PHP 7.3 FPM base container for PHPDocker.io. 17
下载 php5.6 镜像 docker pull php:5.6-fpm
[root@iZ8vb9nmgwljcf9m2wxaekZ ~]# docker pull php:5.6-fpm 5.6-fpm: Pulling from library/php 5e6ec7f28fb7: Pull complete cf165947b5b7: Pull complete 7bd37682846d: Pull complete 99daf8e838e1: Pull complete f8628c9f032f: Pull complete 50ff925cdfa2: Pull complete 6ab76f312877: Pull complete 28ea94b4dd82: Pull complete a6dbb35d45d2: Pull complete 98b901ec9e8d: Pull complete Digest: sha256:4f070f1b7b93cc5ab364839b79a5b26f38d5f89461f7bc0cd4bab4a3ad7d67d7 Status: Downloaded newer image for php:5.6-fpm docker.io/library/php:5.6-fpm