This is an old revision of the document!
From https://www.docker.com/what-docker:
“Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.
LIGHTWEIGHT
Containers running on a single machine share the same operating system kernel; they start instantly and use less RAM. Images are constructed from layered filesystems and share common files, making disk usage and image downloads much more efficient.”
This container will hold a directory where all your user data can be stored for use with PyLith within Docker. This directory is not directly accessible from your host computer. However, you can copy files to/from your host filesystem using “docker cp” (see below).
$ docker create --name pylith-data geodynamics/pylith-data
$ docker run -ti --volumes-from pylith-data geodynamics/pylith
HINT: You will probably want to copy the examples from the pylith-VERSION directory to the data directory, which is the persistent storage.
$ cp -R ~/pylith-VERSION/examples ~/data
Control-p Control-q
$ docker ps
$ docker attach CONTAINER_ID
These commands are run on the local host outside the container, not inside the docker container.
$ docker cp pylith-data:/data/pylith-user/PATH/FILENAME LOCAL_PATH
$ docker cp LOCAL_PATH pylith-data:/data/pylith-user/PATH/
$ docker images
$ docker ps -a
$ docker ps
$ docker rm CONTAINER_ID
$ docker rmi IMAGE_ID