O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running Neo4j in a Docker container

Now, run this long command in a Terminal to run Docker with a Neo4j image. Explanations are coming just after:

docker run --rm --publish=7474:7474 --publish=7687:7687 --volume=$HOME/neo4j/data:/data \--volume=$HOME/neo4j/logs:/logs neo4j:3.1.2

This triggered some downloading because your local Docker repository does not have the Neo4j image available in its 3.1.2 version yet. Meanwhile, a useful magical incantation is to sing "run, baby, run"

Its form is: docker command parameters imageName:version.

Ports used by Neo4j are 7474, 7473, and 7687, for the protocols http, https, and bolt, respectively .

In the parameters part, you can see--volume twice. Its use is to link the folder on your local filesystem ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required