以下是用于neo4j停靠服务的yaml文件:
version: "2"
services:
neo4j:
image: neo4j:3.2.0
network_mode: host
restart: always
environment:
- NEO4J_AUTH=neo4j/neo4js
env_file:
- ./test-neo4j.env
cap_add:
- SYS_RESOURCE
expose:
- 7474
- 7687
- 1337
ports:
- "7474:7474"
- "7687:7687"
- "1337:1337"
volumes:
- ../docker-neo4j/test-conf:/conf
- ../docker-neo4j/data:/data我在test-conf目录中有默认的文件。如果我不将../docker-neo4j/test-conf:/conf行添加到我的卷中,则该图形已经启动并运行。如果我添加这条特定的行,那么图形就不会启动。我得到了以下错误:
neo4j_1 | Error: Could not find or load main class org.neo4j.commandline.admin.AdminTool
neo4j_1 | Active database: graph.db
neo4j_1 | Directories in use:
neo4j_1 | home: /var/lib/neo4j
neo4j_1 | config: /var/lib/neo4j/conf
neo4j_1 | logs: /var/log/neo4j
neo4j_1 | plugins: /var/lib/neo4j/plugins
neo4j_1 | import: /var/lib/neo4j/import
neo4j_1 | data: /var/lib/neo4j/data
neo4j_1 | certificates: /var/lib/neo4j/certificates
neo4j_1 | run: /var/run/neo4j
neo4j_1 | Starting Neo4j.
neo4j_1 | Error: Could not find or load main class org.neo4j.server.CommunityEntryPoint
dockerneo4jtest_neo4j_1 exited with code 1我已经在谷歌了。我找不到合适的结果来解决这个新4j码头问题。有什么工作可以解决这个问题吗?
https://stackoverflow.com/questions/48082000
复制相似问题