如何构建使用特定版本底层Docker镜像的Memgraph Docker扩展?

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

How to build Memgraph Docker Extension that uses specific version of underlying Docker image?

问题

Memgraph Docker extension 使用最新的 Memgraph 平台镜像。目前,这意味着使用的是 Memgraph 平台 2.8 版本。

我想构建一个使用 Memgraph 平台 2.7 的 Docker 扩展,是否可以实现?

我尝试过 docker build --tag=memgraph/memgraph-docker-extension:2.7.0 . 但这只是给 Docker 扩展打上了 2.7 的标签,而不改变使用的 Memgraph 平台版本。

英文:

Memgrpah Docker extension uses the latest Memgraph Platform image. At the moment, this means that Memgraph Platform 2.8 is used.

I would like to build a Docker Extension that uses Memgraph Platform 2.7. Can that be done?

I've tried docker build --tag=memgraph/memgraph-docker-extension:2.7.0 . but this only tags Docker extension with 2.7, it doesn't change the Memgraph Platform that is used.

答案1

得分: 0

为了使用特定版本的Memgraph平台,请执行以下步骤:

  1. 克隆存储库 - git clone https://github.com/memgraph/memgraph-docker-extension
  2. 编辑 docker-compose.yaml 文件。找到定义使用的Docker镜像的行,例如 image: "memgraph/memgraph-platform:2.8.0-memgraph2.8.0-lab2.6.0-mage1.7",并将镜像名称/标签替换为您想要的版本。您可以在 https://hub.docker.com/r/memgraph/memgraph-platform/tags 找到标签列表。
英文:

To use a specific version of the Memgraph Platform do the following:

  1. Clone the repo - git clone https://github.com/memgraph/memgraph-docker-extension
  2. Edit docker-compose.yaml. Find the line that defines the docker image that is used, e.g. image: "memgraph/memgraph-platform:2.8.0-memgraph2.8.0-lab2.6.0-mage1.7" and replace the image name/tag with one that you want. You can find the list of tags at https://hub.docker.com/r/memgraph/memgraph-platform/tags.

huangapple
  • 本文由 发表于 2023年6月19日 21:35:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76507172.html
匿名

发表评论

匿名网友

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

确定