A docker image of the MATSim open-source framework:
- Container calls the main method of the
DockerEntrypointclass when started. - Provide input files with
config.xmland save output files from the container using volumes. - Make sure the
config.xmlis configured to output the information to/opt/matsim/data/output/
<param name="outputDirectory" value="/opt/matsim/data/output/" />
- Pass additional arguments to MATSim using commands that are following the run statement.
Run MATSim inside a container:
docker run \
-v <host/path/to/input>:/opt/matsim/data/input:ro \
-v <host/path/to/output>:/opt/matsim/data/output \
maptic/matsim:latest <optional MATSIM-ARGS>To pull the recent version of the image, refer to the latest tag.
Make sure
Set the input and output path in the docker-compose.yml file, then run:
docker-compose build
docker-compose up