如何映射 gentics/mesh docker 图像的配置目录?

How to map the config dir of the gentics/mesh docker image?

我试过这样启动网格:

docker run -v /tmp/mesh/data:/mesh/data -v /tmp/mesh/conf:/mesh/conf -it -p 8080:8080 gentics/mesh

但是配置目录仍然是空的。在数据目录中,所有内容都已创建。

我们需要访问配置文件来调整应用程序。

根据https://hub.docker.com/r/gentics/mesh/,配置目录应该安装在/mesh/config,而不是/mesh/conf

我投了 sneep, because this should work. Although it's not actually the exposed volume in the image, that is what they have in the description on the hub.docker.com repo for mesh 的答案。

Dockerfile in the gentics mesh repository讲述的故事:

首先是这个位:

RUN mkdir /data   && chown mesh: /data -R   && ln -s /data /mesh/data
RUN mkdir /config && chown mesh: /config -R && ln -s /config /mesh/config

后来这些卷被曝光:

VOLUME /data
VOLUME /config
VOLUME /elasticsearch/data
VOLUME /elasticsearch/config

我猜你可以简单地映射到 /data/config 卷,因为它们是公开的。

但如前所述,之前的答案应该没问题。