If you are already running another docker instance of Neo4j, you need to stop or kill that instance before running a new one.
Here are the steps:
- Run the following command on the terminal to get the list of containers currently running:
docker container ls
- Find the container that is using port 7687. To stop it, run the following command on the terminal:
docker stop <CONTAINER ID>
- To kill it, run the following command on the terminal:
docker rm -f <container-name>
Now you can run the new docker instance of Neo4j by running the "docker run" command.