[SOLUCIONADO]Instalación de Docker pisando el foso: no se puede encontrar la imagen 'hello-world:latest' localmente

在这里插入代码片# Descripción del problema
Después de instalar Docker, pruebe si la instalación es exitosa. Ejecutar docker run hello-world informa el siguiente error:

# docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate is valid for www.doctorcom.com, not registry-1.docker.io.
See 'docker run --help'.

Solución

  1. Cambie la imagen doméstica de Alibaba Cloud y cree un archivo daemon.json
vim /etc/docker/daemon.json

Agregue lo siguiente al archivo:

 {
    
     
 "registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"] 
 }
  1. reiniciar ventana acoplable
systemctl restart docker
systemctl status docker

inserte la descripción de la imagen aquí

  1. Vuelva a ejecutar docker run hello-worldpara extraer la imagen nuevamente, ¡y finalmente lo logró! ¡dormir!

inserte la descripción de la imagen aquí

Supongo que te gusta

Origin blog.csdn.net/TommyXu8023/article/details/113291112
Recomendado
Clasificación