Public | Automated Build

Last pushed: a year ago
Short Description
Open Source Routing Machine Docker image
Full Description

OSRM Docker

The Open Source Routing Machine is a high performance routing engine written in C++11 designed to run on OpenStreetMap data.

docker run -d -p 5000:5000 stepankuzmin/osrm <url> <profile>

Where <url> is osm.pbf url and <profile> is one of the OSRM profiles (foot is default) or one of above:

  • stepless - default foot profile excluding steps.


  • Custom profiles
  • LuaSQL with PostgreSQL support


This will create docker container with mapzen extract processed using default car profile

docker run -d -p 5000:5000 stepankuzmin/osrm "" car

You can also mount a host directory as a data volume:

docker run -d \
  -p 5000:5000 \
  -v /srv/osrm/data:/data \
  -v /srv/osrm/extracts:/extracts \
  -v /srv/osrm/profiles:/profiles \
  --name osrm \

This command mounts the host directory, /srv/osrm/data, into the container at /data, /srv/osrm/extracts into /extracts and /srv/osrm/profiles into /profiles.

You can run OSRM with custom profiles with:

docker create \
  -p 5000:5000 \
  --name osrm \
  stepankuzmin/osrm \
  "" sidewalks

docker cp sidewalks.lua osrm:/profiles/
docker start osrm


Running a query on your local server:

Docker Pull Command
Source Repository