Can you run graphHoper on docker desktop?

Hello,

Are there users who run GraphHopper on a docker desktop on a computer? I try to run this but receive some error. I use the israelhikingmap/graphhopper.

Best,
Bram

Please provide more information. What error message you got. What command you executed. What GraphHopper and operating system version you have etc

I do run graphhopper on docker desktop.

Two things I noticed while looking at graphhopper-docker-image-push/Dockerfile at main · IsraelHikingMap/graphhopper-docker-image-push · GitHub

  1. FROM eclipse-temurin:21.0.1_12-jre
    I am not sure if a JRE is capable of running the server process, I am using the full jdk.
  2. ENV JAVA_OPTS “-Xmx1g -Xms1g”
    Depending on your data this is way to low .

But generally as @karussell said. Your post is a bit to unspecfic regarding the error message you got.

Thank you for the replay. This is the error message I receive. I try to run this on my MacBook Pro:

2024-03-22 15:24:13 ## using java 21.0.1 (64bit) from /opt/java/openjdk
2024-03-22 15:24:13 ## Executing server. JAVA_OPTS=-Xmx1g -Xms1g
2024-03-22 15:24:15 2024-03-22 14:24:15.816 [main] INFO org.eclipse.jetty.util.log - Logging initialized @2668ms to org.eclipse.jetty.util.log.Slf4jLog
2024-03-22 15:24:15 2024-03-22 14:24:15.908 [main] INFO i.d.server.DefaultServerFactory - Registering jersey handler with root path prefix: /
2024-03-22 15:24:15 2024-03-22 14:24:15.911 [main] INFO i.d.server.DefaultServerFactory - Registering admin handler with root path prefix: /
2024-03-22 15:24:16 2024-03-22 14:24:16.155 [main] INFO io.dropwizard.assets.AssetsBundle - Registering AssetBundle with name: assets for path /maps/*
2024-03-22 15:24:16 2024-03-22 14:24:16.156 [main] INFO io.dropwizard.assets.AssetsBundle - Registering AssetBundle with name: webjars for path /webjars/*
2024-03-22 15:24:16 2024-03-22 14:24:16.162 [main] INFO io.dropwizard.server.ServerFactory - Starting GraphHopperApplication
2024-03-22 15:24:16 _ _
2024-03-22 15:24:16 __ _ _ __ __ _ _ __ | |__ | |__ ___ _ __ _ __ ___ _ __
2024-03-22 15:24:16 / | '__/ _ | ’ | '_ | '_ \ / _ | '_ | '_ \ / _ \ '|
2024-03-22 15:24:16 | (| | | | (| | |) | | | | | | | () | |) | |) | / |
2024-03-22 15:24:16 _, || _,| .
/|| ||| ||_
/| ./| ./ _||
2024-03-22 15:24:16 |
/ || || |_|
2024-03-22 15:24:16 2024-03-22 14:24:16.254 [main] INFO o.e.jetty.setuid.SetUIDListener - Opened application@39e43310{HTTP/1.1, (http/1.1)}{0.0.0.0:8989}
2024-03-22 15:24:16 2024-03-22 14:24:16.255 [main] INFO o.e.jetty.setuid.SetUIDListener - Opened admin@eb507b9{HTTP/1.1, (http/1.1)}{0.0.0.0:8990}
2024-03-22 15:24:16 2024-03-22 14:24:16.257 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.53.v20231009; built: 2023-10-09T12:29:09.265Z; git: 27bde00a0b95a1d5bbee0eae7984f891d2d0f8c9; jvm 21.0.1+12-LTS
2024-03-22 15:24:16 2024-03-22 14:24:16.272 [main] INFO com.graphhopper.GraphHopper - version 9.0|2024-02-29T01:42:52Z (9,21,6,5,2,9)
2024-03-22 15:24:16 2024-03-22 14:24:16.484 [main] ERROR io.dropwizard.cli.ServerCommand - Unable to start server, shutting down
2024-03-22 15:24:16 java.lang.IllegalStateException: Couldn’t load from existing folder: /data/default-gh but also cannot use file for DataReader as it wasn’t specified!
2024-03-22 15:24:16 at com.graphhopper.GraphHopper.importOSM(GraphHopper.java:957)
2024-03-22 15:24:16 at com.graphhopper.GraphHopper.process(GraphHopper.java:853)
2024-03-22 15:24:16 at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:804)
2024-03-22 15:24:16 at com.graphhopper.http.GraphHopperManaged.start(GraphHopperManaged.java:44)
2024-03-22 15:24:16 at io.dropwizard.lifecycle.JettyManaged.doStart(JettyManaged.java:27)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
2024-03-22 15:24:16 at org.eclipse.jetty.server.Server.start(Server.java:423)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
2024-03-22 15:24:16 at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
2024-03-22 15:24:16 at org.eclipse.jetty.server.Server.doStart(Server.java:387)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
2024-03-22 15:24:16 at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:52)
2024-03-22 15:24:16 at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:68)
2024-03-22 15:24:16 at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
2024-03-22 15:24:16 at io.dropwizard.cli.Cli.run(Cli.java:78)
2024-03-22 15:24:16 at io.dropwizard.Application.run(Application.java:94)
2024-03-22 15:24:16 at com.graphhopper.application.GraphHopperApplication.main(GraphHopperApplication.java:38)
2024-03-22 15:24:16 java.lang.IllegalStateException: Couldn’t load from existing folder: /data/default-gh but also cannot use file for DataReader as it wasn’t specified!
2024-03-22 15:24:16 at com.graphhopper.GraphHopper.importOSM(GraphHopper.java:957)
2024-03-22 15:24:16 at com.graphhopper.GraphHopper.process(GraphHopper.java:853)
2024-03-22 15:24:16 at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:804)
2024-03-22 15:24:16 at com.graphhopper.http.GraphHopperManaged.start(GraphHopperManaged.java:44)
2024-03-22 15:24:16 at io.dropwizard.lifecycle.JettyManaged.doStart(JettyManaged.java:27)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
2024-03-22 15:24:16 at org.eclipse.jetty.server.Server.start(Server.java:423)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
2024-03-22 15:24:16 at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
2024-03-22 15:24:16 at org.eclipse.jetty.server.Server.doStart(Server.java:387)
2024-03-22 15:24:16 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
2024-03-22 15:24:16 at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:52)
2024-03-22 15:24:16 at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:68)
2024-03-22 15:24:16 at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
2024-03-22 15:24:16 at io.dropwizard.cli.Cli.run(Cli.java:78)
2024-03-22 15:24:16 at io.dropwizard.Application.run(Application.java:94)
2024-03-22 15:24:16 at com.graphhopper.application.GraphHopperApplication.main(GraphHopperApplication.java:38)

Thank you I try to change this settings.

Maybe you should check the README file on how to use this specific Docker setup. You should direct questions to GitHub - IsraelHikingMap/graphhopper-docker-image-push: Scripts to create and upload a docker image of graphhopper rather to graphhopper