Docker configuration files for running SPECFEM2D on non linux system.
- if Docker is not installed yet, it can be downloaded from https://www.docker.com/
- download this repository or git clone by
git clone https://github.com/mnagaso/SPECFEM2D_on_docker
on cmd. cd SPECFEM2D_on_docker
- verify if docker daemon is running.
docker-compose up -d
to build the docker container.docker-compose ps
shows the name and states of the docker container which is built in the former step like:
Name Command State Ports
-------------------------------------------------------------
specfem2d_on_docker-master_spec_1 /bin/bash Up
- Connect to the docker environment with
docker attach (container name)
. Generally it isdocker attach specfem2d_on_docker_spec_1
ordocker attach specfem2d_on_docker-master_spec_1
.
Compiled specfem2d and source are in /specfem2d.
Only the files put in /workspace will be shared with the host environment.
When you erase the docker container, only the files in this /workspace will be kept and others will be lost. - to leave this container,
ctrl + p + q
- for re-attaching to this container, redo step 4.
The modifications done in the container will be reflected automatically on the local environment.
This script does not support docker toolbox (docker system working with virtual box).