docker,docker-compose命令查看dockerhub得镜像

docker安装完成后

如果国内访问慢或者超时,修改docker镜像源,添加加速器
可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器

{
"registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn" ]
}

如果你在中国访问Docker Hub的速度较慢或无法访问,你可以尝试使用一些在中国境内提供的Docker镜像加速器。这些加速器可以提供更快的下载速度。以下是一些常见的Docker镜像加速器:

DaoCloud加速器:

链接:https://www.daocloud.io/mirror#accelerator-doc
阿里云加速器:

链接:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
网易云加速器:

链接:https://c.163yun.com/hub#/m/repository/
这些加速器通常提供详细的使用说明,你只需按照说明配置Docker即可享受加速服务。请注意,由于Docker镜像的更新频繁,你可能需要定期检查这些加速器提供的服务和文档以获取最新信息。

执行命令

docker search nginx

[root@hadoop1 ~]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
[root@hadoop1 ~]# docker search nginx
NAME                               DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
nginx                              Official build of Nginx.                        19478     [OK]       
unit                               Official build of NGINX Unit: Universal Web …   20        [OK]       
nginxinc/nginx-unprivileged        Unprivileged NGINX Dockerfiles                  139                  
nginx/nginx-ingress                NGINX and  NGINX Plus Ingress Controllers fo…   87                   
nginx/nginx-prometheus-exporter    NGINX Prometheus Exporter for NGINX and NGIN…   34                   
nginxinc/nginx-s3-gateway          Authenticating and caching gateway based on …   5                    
nginx/unit                         This repository is retired, use the Docker o…   64                   
nginx/nginx-ingress-operator       NGINX Ingress Operator for NGINX and NGINX P…   2                    
nginxinc/amplify-agent             NGINX Amplify Agent docker repository           1                    
nginx/nginx-quic-qns               NGINX QUIC interop                              1                    
nginxinc/ingress-demo              Ingress Demo                                    4                    
nginxproxy/nginx-proxy             Automated nginx proxy for Docker containers …   124                  
nginxproxy/acme-companion          Automated ACME SSL certificate generation fo…   128                  
bitnami/nginx                      Bitnami nginx Docker Image                      181                  [OK]
bitnami/nginx-ingress-controller   Bitnami Docker Image for NGINX Ingress Contr…   32                   [OK]
ubuntu/nginx                       Nginx, a high-performance reverse proxy & we…   106                  
nginxinc/nginmesh_proxy_debug                                                      0                    
nginxproxy/docker-gen              Generate files from docker container meta-da…   14                   
nginxinc/mra-fakes3                                                                0                    
kasmweb/nginx                      An Nginx image based off nginx:alpine and in…   7                    
nginxinc/mra_python_base                                                           0                    
nginxinc/ngx-rust-tool                                                             0                    
rancher/nginx-ingress-controller                                                   11                   
nginxinc/nginmesh_proxy_init                                                       0