mongodb - 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,
解决方案
请尝试使用以下命令运行。您没有传递正确的标签名称。MongoDB 的可用标签列表在这里。https://hub.docker.com/_/mongo?tab=tags
docker run --name my-mongodb -d mongo:latest
推荐阅读
- svelte - Svelte 应用程序构建但无法访问本地主机
- android - 从接收方获取数据时,intent 为 null
- python - 如何在 Python 中创建同一个类的多个实例并传递不同的参数
- vue.js - 使用状态快照在 Vuex 中撤消/重做
- android - Flutter build with CI getting error Program type already present: com.google.common.util.concurrent.ListenableFuture
- c# - 如何解决一个信号应用 id 无效的问题
- python - 取不同字符串中的相同元素之一
- android - 在 Java 文件中无法从 XML 中找到对象
- javascript - 动态渲染 Bootstrap Vue Dropdown 元素
- java - 如何将列表中的对象添加到向量中?