Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.44 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.44 KB

Logo

SPECFEM2D on Docker

Docker configuration files for running SPECFEM2D on non linux system.

  1. if Docker is not installed yet, it can be downloaded from https://www.docker.com/
  2. download this repository or git clone by git clone https://github.com/mnagaso/SPECFEM2D_on_docker on cmd.
  3. cd SPECFEM2D_on_docker
  4. verify if docker daemon is running.
  5. docker-compose up -d to build the docker container.
  6. 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
  1. Connect to the docker environment with docker attach (container name). Generally it is docker attach specfem2d_on_docker_spec_1 or docker 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.
  2. to leave this container, ctrl + p + q
  3. 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).