zzh@ZZHPC:~$ docker pull neo4j:latest
zzh@ZZHPC:~$ docker run \ --publish=7474:7474 --publish=7687:7687 \ --volume=$HOME/neo4j/data:/data \ -d neo4j
How to use this image
You can start a Neo4j container like this:
docker run \
--publish=7474:7474 --publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
neo4j
which allows you to access neo4j through your browser at http://localhost:7474.
This binds two ports (7474
and 7687
) for HTTP and Bolt access to the Neo4j API. A volume is bound to /data
to allow the database to be persisted outside the container.
By default, this requires you to login with neo4j/neo4j
and change the password. You can, for development purposes, disable authentication by passing --env=NEO4J_AUTH=none
to docker run.
Documentation
For more examples and complete documentation please go to our manual here.
标签:container,--,data,7687,neo4j,Neo4j,docker,7474 From: https://www.cnblogs.com/zhangzhihui/p/18608621