如何使用Docker运行最新的Memgraph平台?

huangapple go评论58阅读模式
英文:

How to run the latest Memgraph Plarform using Docker?

问题

我使用以下命令运行 Memgraph Platform:docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform

我可以看到 Memgraph Platform 2.10 已发布在 https://hub.docker.com/r/memgraph/memgraph-platform/tags,但这个 Docker 命令没有拉取它。我需要使用以下命令:

docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph/memgraph-platform:2.10.0-memgraph2.10.0-lab2.8.0-mage1.9

我是否可以使用比 memgraph/memgraph-platform:2.10.0-memgraph2.10.0-lab2.8.0-mage1.9 更短的标签来运行 Memgraph Platform 2.10?

英文:

I use the command docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform to run Memgraph Platform.

I can see that Memgraph Platform 2.10 is out https://hub.docker.com/r/memgraph/memgraph-platform/tags but this Docker command is not pulling it. I have to use

docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph/memgraph-platform:2.10.0-memgraph2.10.0-lab2.8.0-mage1.9

Can I use some shorter tag than the one memgraph/memgraph-platform:2.10.0-memgraph2.10.0-lab2.8.0-mage1.9 to run Memgraph Platform 2.10?

答案1

得分: 1

当您发出docker run命令时,Docker守护进程首先查找主机上的本地镜像注册表。利用本地缓存,守护进程搜索指定的镜像标签,如latest。如果在本地注册表中找到标签,则搜索满足条件,将使用相应的镜像来实例化一个容器。

如果指定的标签不在本地注册表中,守护进程将扩展搜索到远程存储库,如Docker Hub。

您可以检查当前可用于本地机器的镜像和标签,可以使用docker images命令:

docker images

此命令将提供所有本地存储的镜像列表,包括它们的标签、镜像ID、创建日期和大小。

如果要确保在运行容器之前拥有Memgraph Platform镜像的最新版本,可以使用docker pull。首先运行docker pull memgraph/memgraph-platform:latest,然后运行docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform:latest

英文:

When you issue a docker run command, the Docker daemon first looks into the local image registry on the host machine. Utilizing the local cache, the daemon searches for the specified image tag, such as latest. If the tag is found within the local registry, the search is satisfied, and the corresponding image is used to instantiate a container.

If the specified tag is not in the local registry, the daemon will extend search to remote repositories, like Docker Hub.

You can inspect the images and tags currently available on your local machine, you can use the docker images command:

docker images

This command will provide a list of all images along with their tags, image IDs, creation dates, and sizes stored locally.

If you want to ensure that you have the latest version of the Memgraph Platform image before running a container, you can use the docker pull. First run docker pull memgraph/memgraph-platform:latest and then docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform:latest.

huangapple
  • 本文由 发表于 2023年8月4日 23:14:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76837214.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定