Docker搜索无法找到图像,但docker pull可以 [英] Docker search cannot find image but docker pull can
问题描述
在openshift中搜索图像php:7.3.15-apache时,我们找到了它,但是使用docker search命令搜索时找不到相同的图像.
为什么会这样?为什么docker pull可以找到图像但是docker search找不到图像.
testuser @ docker:〜$ sudo docker搜索php:7.3.15-apache名称说明星星官方自动testuser @ docker:〜$
使用docker pull时,可下载:
testuser @ docker:〜$ sudo docker pull php:7.3.15-apache7.3.15-apache:从库/php中提取68ced04f60ab:下载[=========>] 5.008MB/27.09MB68ced04f60ab:拉动完成1d2a5d8fa585:拉出完成5d59ec4ae241:提取完成d42331ef4d44:拉出完成408b7b7ee112:拉完整570cd47896d5:拉出完成2419413b2a16:提取完成8c722e1dceb9:拉出完成34fb68439fc4:拉出完成e775bf0f756d:拉出完成b1949a1e9661:拉出完成6ed8bcec42ae:拉动完成f6247da7d55f:拉出完成a090bafe99ea:拉出完成摘要:sha256:ad53b6b5737c389d1bcea8acc2225985d5d90e6eb362911547e163f1924ec089状态:为php:7.3.15-apache下载的较新映像docker.io/library/php:7.3.15-apache
据我了解 docker中心只有那些版本的php.
sudo docker搜索php
名称描述星星正式自动php虽然是为Web开发而设计的,但PHP…5114 [确定]phpmyadmin/phpmyadmin MySQL和MariaDB的Web界面.967 [确定]管理员在单个PHP文件中进行数据库管理.362 [确定]php-zendserver Zend Server-集成的PHP应用程序…180 [确定]使用PHP-FPM 150的webdevops/php-nginx Nginx [确定]webdevops/php-apache-dev使用Apache for Development的PHP(例如,使用xd…116 [确定]webdevops/php-apache使用PHP-FPM的Apache(基于webdevops/php)100 [确定]bitnami/php-fpm Bitnami PHP-FPM Docker镜像86 [确定]phpunit/phpunit PHPUnit是一个面向程序员的测试框架,它可以帮助您解决问题.75 [确定]nazarpc/phpmyadmin phpMyAdmin作为Docker容器,基于关闭…60 [确定]circleci/php用于PHP 28的CircleCI图像thecodingmachine/php通用的超可配置PHP映像28 [确定]phpdockerio/php72-fpm用于PHPDocker.io的PHP 7.2 FPM基本容器.19 [确定]bitnami/phpmyadmin用于phpMyAdmin的Bitnami Docker镜像18 [确定]phpdockerio/php7-fpm用于PHPDocker.io的PHP 7 FPM基本容器.14 [确定]phpdockerio/php56-fpm用于PHPDocker.io 13的PHP 5.6 FPM基本容器[确定]graze/php-alpine小型的php7高山图片,带有一些常见的…13 [OK]appsvc/php Azure应用服务php dockerfiles 12 [确定]phpdockerio/php73-fpm用于PHPDocker.io的PHP 7.3 FPM基本容器.11phpdockerio/php71-fpm用于PHPDocker.io的PHP 7.1 FPM基本容器.7 [确定]phpdockerio/php72-cli PHPDocker.io的PHP 7.2 CLI基本容器.4 [确定]phpdockerio/php7-cli PHPDocker的PHP 7 CLI基本容器映像…1 [确定]phpdockerio/php56-cli用于PHPDocker.io的PHP 5.6 CLI基本容器…1 [确定]phpdockerio/php71-cli PHPDocker.io的PHP 7.1 CLI基本容器.1 [确定]isotopab/php Docker PHP 0 [确定]
所以您可以使用其中之一.
或者,如果您想要此特定版本
这里是docker hub上的特定映像版本.
您可以使用 docker pull
docker pull php:7.3.15-apache
并通过 docker push
docker push
有关它的更多信息.
- https://stackoverflow.com/a/28349540/11977760
- https://www.docker.com/blog/how-to-to-use-your-own-registry/
并使用您自己的注册表而不是docker hub.
要从专用存储库中部署映像,必须使用映像注册表凭据创建映像请求密钥.您在图像名称"下有更多信息.
我希望这能回答您的问题.让我知道您是否还有其他问题.
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.
- https://stackoverflow.com/a/28349540/11977760
- https://www.docker.com/blog/how-to-use-your-own-registry/
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.
这篇关于Docker搜索无法找到图像,但docker pull可以的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!