Sorry for probably stupid question, But I tried everything. I'm strugling with first command for installing docker image:
docker run -t -v $(pwd):/data osrm/osrm-backend osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf
This is my terminal:
https://ibb.co/ddtvTF
I tried even download this file under docker image to "/data" catalog - the same
I tried to pass folder from few places under Ubuntu main system - the same
Please help.
Last image, Ubuntu 16, last docker version
@przelew You're missing a leading / in front of data/poland-latest.osm.pbf.
The flag -v $(pwd):/data creates the directory /data inside the docker container, and makes $(pwd) available there. The file /data/poland-latest.osm.pbf inside the container is referring to /home/ubuntu/poland-latest.osm.pbf on the host.
@danpat I did few things and it started to work (also your suggestion), thank you.
what did you do?? I have the exact same prob ...
+1 on "what did you do??"
It's all exactly the same but on latest mac os with latest docker...
File sharing with docker by default works with /Users and its subdirectories...

For the record: solution is here: https://github.com/Project-OSRM/osrm-backend/issues/4253#issuecomment-313667032: - paths were wrong.
I feel like the README should be updated to be more clear to everyone who's run into this issue.
Most helpful comment
For the record: solution is here: https://github.com/Project-OSRM/osrm-backend/issues/4253#issuecomment-313667032: - paths were wrong.