Docker 上的 Ontotext GraphDB - 如何使用主机文件系统上的文件而不是容器内的文件

Ontotext GraphDB on Docker - how to work with file on host file system instead of inside the container

我在 Windows 主页的 Docker 容器中有 Ontotext GraphDb 运行。我想在我的主机文件系统 (Windows) 中创建存储库、生成日志和任何其他操作文件,以便我可以从 Docker 容器外部访问和使用它们。 我怎样才能做到这一点?

您需要在启动时公开 docker 端口 - docker 运行 -p 7200:7200... 然后你应该可以在你的 windows 机器上连接到 http://localhost:7200。