<p>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. </p>

<p>Why it is like that ? Why docker pull can find the image but docker search can't find the image.</p>

<p><a href="https://hub.docker.com/layers/php/library/php/7.3.15-apache/images/sha256-b46474a6978f90a7be661870ac3ff09643e8d5ed350f48f47e4bc6ff785fc7b1?context=explore" rel="nofollow noreferrer">Example</a> </p>

<p><a href="https://i.stack.imgur.com/sK2LH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sK2LH.png" alt="enter image description here"></a></p>

<pre><code>testuser@docker:~$ sudo docker search php:7.3.15-apache
NAME                DESCRIPTION         STARS               OFFICIAL            AUTOMATED
testuser@docker:~$ 
</code></pre>

<p>When using docker pull, it is downloadable :</p>

<pre><code>testuser@docker:~$ sudo docker pull php:7.3.15-apache
7.3.15-apache: Pulling from library/php
68ced04f60ab: Downloading [=========&gt;                                         ]  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
</code></pre>

Gopu
<p>As far as I understand <a href="https://hub.docker.com/" rel="noreferrer">docker hub</a> have only those versions of php .</p>

<pre><code>sudo docker search php
</code></pre>

<hr>

<pre><code>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]
</code></pre>

<p>So you could either use 1 of that.</p>

<hr>

<p><strong>OR, if you want this specific version</strong></p>

<hr>

<p><a href="https://hub.docker.com/layers/php/library/php/7.3.15-apache/images/sha256-b46474a6978f90a7be661870ac3ff09643e8d5ed350f48f47e4bc6ff785fc7b1?context=explore" rel="noreferrer">There</a> is the specific image version on docker hub.</p>

<hr>

<p>You can use <a href="https://docs.docker.com/engine/reference/commandline/pull/" rel="noreferrer">docker pull</a> </p>

<pre><code>docker pull php:7.3.15-apache
</code></pre>

<p>And push it to your private registry with <a href="https://docs.docker.com/engine/reference/commandline/push/" rel="noreferrer">docker push</a> </p>

<pre><code>docker push
</code></pre>

<p>More about it.</p>

<ul>
<li><a href="https://stackoverflow.com/a/28349540/11977760">https://stackoverflow.com/a/28349540/11977760</a></li>
<li><a href="https://www.docker.com/blog/how-to-use-your-own-registry/" rel="noreferrer">https://www.docker.com/blog/how-to-use-your-own-registry/</a></li>
</ul>

<hr>

<p>And use your own registry instead of docker hub.</p>

<blockquote>
  <p>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.</p>
</blockquote>

<hr>

<p>I hope this answer your question. Let me know if you have any more questions.</p>
