Public Repository

Last pushed: a year ago
Short Description
Dockerfile for latest osrm-backend
Full Description

The image is built using

  • v0.0: v5.7.0-latest.6

Run it:

$ docker run -d -p 5000:5000 pengma/osrm-backend-docker:v0.0 osrm label ""

$ docker run -d -p 5000:5000 pengma/osrm-backend-docker:v0.0 osrm label ""


-d run container in background and print container ID
-p 5000:5000 publish a container port to host
osrm go via entrypoint script, w/o osrm keyword - classic mode
label your label of OSM data
url link to OSM data in PBF format

For example:

$ docker run -d -p 5000:5000 --name osrm-api pengma/osrm-backend-docker:v0.0 osrm Ireland ""

To query:,53.381143;-1.419082,53.399720?steps=true , where the is the local broadcast IP.

Start OSRM Frontend

$ docker run -d --link osrm-api:api --name osrm-mos-front --restart=always -p 8080:80 pengma/osrm-frontend-docker

To increase the memory on docker machine, this works on Mac, not tested on Windows, but not working on Linux

$ docker-machine stop
$ VBoxManage modifyvm default --cpus 2
$ VBoxManage modifyvm default --memory 4096
$ docker-machine start

API docs

Upgrade docker machine on Mac

$ docker-machine upgrade default

Default Docker machine is stored at following and can be deleted


Save the docker image out to local drive

$ docker save -o <save image to path> <image name>

Load image into docker

$ docker load -i <path to image tar file>

Remove all exited containers

$ docker rm $(docker ps -a -f status=exited -q)
$ docker volume rm $(docker volume ls -qf dangling=true)

List dangling volumes:

$ docker volume ls -qf dangling=true

List all volumes:

$ docker volume ls

Remove all the unused Images.

$ docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

Export Save Docker images and container

  • Save the container
    $ docker ps
    defc757ce803 ubuntu "/bin/bash"
    $ docker export defc757ce803 | gzip > ubuntu.tar.gz
    $ ls -lah ubuntu.tar.gz
    $ gzcat ubuntu.tar.gz | docker import - ubuntu-alice
    $ docker run -t -i ubuntu-alice /bin/bash
  • This is now for saving the images
    $ docker save ubuntu | gzip > ubuntu-golden.tar.gz
    $ gzcat ubuntu-golden.tar.gz | docker load
    $ docker run -i -t ubuntu /bin/bash
  • Increase the size of the VM storage
    $ boot2docker init -s 40000
Docker Pull Command