When searching the image php:7.3.15-apache in openshift and we found it, but the same image is not found when searching using the docker search command.
Why it is like that ? Why docker pull can find the image but docker search can't find the image.
testuser@docker:~$ sudo docker search php:7.3.15-apache
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
testuser@docker:~$
When using docker pull, it is downloadable :
testuser@docker:~$ sudo docker pull php:7.3.15-apache
7.3.15-apache: Pulling from library/php
68ced04f60ab: Downloading [=========> ] 5.008MB/27.09MB
68ced04f60ab: Pull complete
1d2a5d8fa585: Pull complete
5d59ec4ae241: Pull complete
d42331ef4d44: Pull complete
408b7b7ee112: Pull complete
570cd47896d5: Pull complete
2419413b2a16: Pull complete
8c722e1dceb9: Pull complete
34fb68439fc4: Pull complete
e775bf0f756d: Pull complete
b1949a1e9661: Pull complete
6ed8bcec42ae: Pull complete
f6247da7d55f: Pull complete
a090bafe99ea: Pull complete
Digest: sha256:ad53b6b5737c389d1bcea8acc2225985d5d90e6eb362911547e163f1924ec089
Status: Downloaded newer image for php:7.3.15-apache
docker.io/library/php:7.3.15-apache
As far as I understand docker hub have only those versions of php .
sudo docker search php
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
php While designed for web development, the PHP … 5114 [OK]
phpmyadmin/phpmyadmin A web interface for MySQL and MariaDB. 967 [OK]
adminer Database management in a single PHP file. 362 [OK]
php-zendserver Zend Server - the integrated PHP application… 180 [OK]
webdevops/php-nginx Nginx with PHP-FPM 150 [OK]
webdevops/php-apache-dev PHP with Apache for Development (eg. with xd… 116 [OK]
webdevops/php-apache Apache with PHP-FPM (based on webdevops/php) 100 [OK]
bitnami/php-fpm Bitnami PHP-FPM Docker Image 86 [OK]
phpunit/phpunit PHPUnit is a programmer-oriented testing fra… 75 [OK]
nazarpc/phpmyadmin phpMyAdmin as Docker container, based on off… 60 [OK]
circleci/php CircleCI images for PHP 28
thecodingmachine/php General-purpose ultra-configurable PHP images 28 [OK]
phpdockerio/php72-fpm PHP 7.2 FPM base container for PHPDocker.io. 19 [OK]
bitnami/phpmyadmin Bitnami Docker Image for phpMyAdmin 18 [OK]
phpdockerio/php7-fpm PHP 7 FPM base container for PHPDocker.io. 14 [OK]
phpdockerio/php56-fpm PHP 5.6 FPM base container for PHPDocker.io 13 [OK]
graze/php-alpine Smallish php7 alpine image with some common … 13 [OK]
appsvc/php Azure App Service php dockerfiles 12 [OK]
phpdockerio/php73-fpm PHP 7.3 FPM base container for PHPDocker.io. 11
phpdockerio/php71-fpm PHP 7.1 FPM base container for PHPDocker.io. 7 [OK]
phpdockerio/php72-cli PHP 7.2 CLI base container for PHPDocker.io. 4 [OK]
phpdockerio/php7-cli PHP 7 CLI base container image for PHPDocker… 1 [OK]
phpdockerio/php56-cli PHP 5.6 CLI base container for PHPDocker.io … 1 [OK]
phpdockerio/php71-cli PHP 7.1 CLI base container for PHPDocker.io. 1 [OK]
isotopab/php Docker PHP 0 [OK]
So you could either use 1 of that.
OR, if you want this specific version
There is the specific image version on docker hub.
You can use docker pull
docker pull php:7.3.15-apache
And push it to your private registry with docker push
docker push
More about it.
And use your own registry instead of docker hub.
To deploy an image from a private repository, you must create an image pull secret with your image registry credentials. You have more informations under your Image Name.
I hope this answer your question. Let me know if you have any more questions.
@jt97 Thanks for directing me to the correct direction.I am adding more details with screenshots in this answer for newbies like me on how to search in dockerhub.
I don't know why docker search can't find this image. May be as @jt97 mentioned, it display only major versions.