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.
In the parameters part, you can see--volume twice. Its use is to link the folder on your local filesystem ...