Describe the bug
Trying to re-run the nominatim server returns an error response.
I could be doing this wrong. Is there a way to restart the nominatim server with an existing database?
Or does the startup ssh scripts check this first before ingesting pbf file again?
docker: Error response from daemon: Conflict. The container name "/nominatim" is already in use by container "edaaeb221bd09539338ddca12f844547f527c2d469f814fd396126d309cf1602". You have to remove (or rename) that container to be able to reuse that name.
docker: Error response from daemon: Conflict. The container name "/nominatim" is already in use by container "edaaeb221bd09539338ddca12f844547f527c2d469f814fd396126d309cf1602". You have to remove (or rename) that container to be able to reuse that name.
Describe the bug Trying to re-run the nominatim server returns an error response. I could be doing this wrong. Is there a way to restart the nominatim server with an existing database? Or does the startup ssh scripts check this first before ingesting pbf file again?
C:\Users\nom>docker run -it --shm-size=1g -e PBF_URL=https://download.geofabrik.de/north-america/us-south-latest.osm.pbf -e IMPORT_WIKIPEDIA=false -e NOMINATIM_PASSWORD=qaIACxO6wMR3 -v nominatim-data:/var/lib/postgresql/14/main -p 8080:8080 --name nominatim mediagis/nominatim:4.3
docker: Error response from daemon: Conflict. The container name "/nominatim" is already in use by container "edaaeb221bd09539338ddca12f844547f527c2d469f814fd396126d309cf1602". You have to remove (or rename) that container to be able to reuse that name.
To Reproduce Steps to reproduce the behavior:
Ran the initial setup and pbf ingestion step with the following command. docker run -it -e PBF_URL=https://download.geofabrik.de/north-america/us-south-latest.osm.pbf -p 8080:8080 --name nominatim mediagis/nominatim:4.3
Confirmed the API is working. http://localhost:8080/search.php?q=avenue%20pasteur
Killed the container and tried to start it up again with the following command.
docker run -it --shm-size=1g -e PBF_URL=https://download.geofabrik.de/north-america/us-south-latest.osm.pbf -e IMPORT_WIKIPEDIA=false -e NOMINATIM_PASSWORD=With_MY_PASS_HERE -v nominatim-data:/var/lib/postgresql/14/main -p 8080:8080 --name nominatim mediagis/nominatim:4.3
docker: Error response from daemon: Conflict. The container name "/nominatim" is already in use by container "edaaeb221bd09539338ddca12f844547f527c2d469f814fd396126d309cf1602". You have to remove (or rename) that container to be able to reuse that name.
Expected behavior Based on these instructions, kill and rerun the nominatim server with existing database. https://github.com/mediagis/nominatim-docker/tree/master/4.3#persistent-container-data
Screenshots & Logs If applicable, add screenshots & logs to help explain your problem.
Desktop / Server (please complete the following information):
Additional context Add any other context about the problem here.