首页 > 解决方案 > Unable to find image from docker hub repository

问题描述

I am a really newbie in docker and basically I've started to follow this official guide: https://hub.docker.com/_/mongo

I've executed this commands: step 1 --> docker pull mongo

step 2--> docker images and the output: REPOSITORY TAG IMAGE ID CREATED SIZE mongo latest 3f3daf863757 2 weeks ago 388MB

step 3 --> docker run --name some-mongo -d mongo:tag

Unable to find image 'latest:tag' locally docker: Error response from daemon: pull access denied for latest, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

Any help would be great, thanks in advance,

标签: mongodbdocker

解决方案


请尝试使用以下命令运行。您没有传递正确的标签名称。MongoDB 的可用标签列表在这里。https://hub.docker.com/_/mongo?tab=tags

docker run --name my-mongodb  -d mongo:latest

推荐阅读