Closed zstadler closed 5 years ago
I believe that the Docker documentation means that if /f/temp/myregion.osm.pbf
does not exist yet, then it will create a directory there. Could you check if the host path is correct and exists by running file /f/temp/myregion.osm.pbf
? Also make sure that the host path (on the left of the column) is actually an absolute path.
@zstadler, if you are a Windows user check that the F drive is shared in the Docker settings. I'd also suggest using f:/temp/...
(instead of /f/temp/...
) in your docker command.
I am having the same issue as @zstadler
If I try and use c:/temp
format instead of /c/temp
as @idrm suggested, I get Error response from daemon: invalid mode: /data.osm.pbf.
I'm still not sure about that, but it may be related to the Window's Docker Machine, and therefore all containers, not having access to directories outside of the user's home directory.
Try //f/temp/...
instead of /f/temp/...
.
Solved changing the .osm.pbf filepath in run.sh (for example /import) and compiling the docker image again. Then using a custom mount for a folder "-v dl:/import" (assuming data.osm.pbf is in the folder ./dl ) Thanks for the hints
Solved changing the .osm.pbf filepath in run.sh (for example /import) and compiling the docker image again.
Hi, I'm on windows and using docker desktop. The external pbf file of my region is not importing. Everytime I run the import command that Overv provided, it only downloads the example Luxembourg pbf. Could you explain in detail how did you solve it?
@sagunpandey123,
I found that docker-compose
does a much better job in mapping Windows directories to the Docker machine. Create your own docker-compose.yaml
file and place all the required docker
parameters and volume mapping there. Check out the file syntax here. Then you can work with the docker image/container with docker-compose
commands instead of docker
.
I'm sorry I cannot help you with this Docker image as I no longer use it
Regarding Windows volume mounts have a look at issues #30 and #8. Regarding docker-compose see issues #18 and #19 for examples.
Hi @Istador !
I have a similar issue on Windows 10. I tried with this command:
docker run -v d://osm_tileserver//slovakia.osm.pbf://region.osm.pbf -v map-data://var/lib/postgresql/14/main overv/openstreetmap-tile-server import
WARNING: No import file at /data/region.osm.pbf, so importing Luxembourg as example... INFO: Download PBF file: https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf
What do you think? What is the problem?
UPDATE: It works using this command: docker run -v d:\osm_tileserver\slovakia.osm.pbf:/data/region.osm.pbf -v osm-data:/var/lib/postgresql/14/main -v osm-tiles:/data/tiles overv/openstreetmap-tile-server import
Bind mapping of the external PBF file does not work as expected.
The initial log for
is:
The run continues and sucessfully imports the Luxembourg data.
According to the docker documentation
This could explain the log line