`import_osm.sh` fails in user-mode on Docker Toolbox for Windows
Using Docker Toolbox for Windows, when import_osm.sh is run in user-mode, as in make import-osm, it fails with an error:
$ docker-compose run --rm -u 197609:197121 import-osm
Importing in diff mode
[May 10 15:33:23] [INFO] removing existing cache /cache
[May 10 15:33:23] IO error: /cache/coords: Invalid argument
[May 10 15:33:23] Reading OSM data
-
With
./cacheas a mounted volume, even runningimport-osmas root in docker fails:IO error: /cache/coords: Invalid argument Makefile:174: recipe for target 'import-osm' failedI assume
imposmis trying to perform something that the mountedntfsfilesystem does not support. It would be interesting to see if this happen also in the latestimposmrelease. -
With
cacheas a named volume, bothimport-osmandimport-wikidatamust be run as root in docker in order to succeed. -
With
cacheas a named volume, running 'import-osm' as a user in docker succeeds if/cachepermissions are change a-la/tmp-chmod a+rwxt /cache. This was run as root in docker as part of themake init-dirsactions.