docker部署neo4j

拉取镜像

docker pull neo4j:3.5.35-community

查看镜像

[root@localhost data]# docker images
REPOSITORY   TAG                IMAGE ID       CREATED         SIZE
neo4j        3.5.35-community   3548ff943256   13 months ago   446MB

创建容器并运行

docker run -d --name neo4j_dwtp \
-p 7474:7474 -p 7687:7687 \
-v /home/neo4j/data:/data \
-v /home/neo4j/logs:/logs \
-v /home/neo4j/conf:/var/lib/neo4j/conf \
-v /home/neo4j/import:/var/lib/neo4j/import \
--env NEO4J_AUTH=neo4j/123456 \
neo4j:3.5.35-community

查看容器

[root@localhost data]# docker ps
CONTAINER ID   IMAGE                    COMMAND                  CREATED       STATUS             PORTS                                                                                            NAMES
6c2cdb75f7cc   neo4j:3.5.35-community   "tini -g -- /startup…"   4 hours ago   Up About an hour   0.0.0.0:7474->7474/tcp, :::7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp, :::7687->7687/tcp   neo4j_dwtp

你可能感兴趣的:(docker,neo4j,容器)