Docker image for e3, euler2 and euler2-demos in a Debian OS
-
Install docker specific to your OS
-
Linux
Refer to the [installation instructions for linux at docker.com](https://docs.docker.com/engine/installation/linux/)
- Mac
Refer to the [installation instructions for mac at docker.com](https://docs.docker.com/docker-for-mac/)
- Windows
To run Docker, your machine must have a 64-bit operating system running Windows 7 or higher. Additionally, you must make sure that virtualization is enabled on your machine. For details, see the Toolbox install instructions for Windows.
Windows 7:
You will install the [docker toolbox](https://www.docker.com/products/docker-toolbox)
Windows 10:
You will install [docker for windows](https://docs.docker.com/docker-for-windows)
For more, refer to the [installation instructions for windows at docker.com](https://docs.docker.com/engine/installation/windows/)
-
Startup docker if not done so automatically
-
Run the image
docker run -it rodenhausen/e3-docker-image
If you want to use files of your host system you can mount them when running the image. If your host is a windows system you may for example do something like this.
docker run -v C:\Users\user\e3-data:/e3-data -it rodenhausen/e3-docker-image
Additionally, to automatically copy produced image files from e3 to your host you may want to configure e3 as follows.
e3 set config imageViewer = cp {file} /e3-data
- To maintain the e3 state between docker runs you can:
-
If you have not removed the container, you first have to know your the container name or id. You can find it from the following output
docker ps -a
Then you can restart and attach to it doing
docker start <container-name-or-id> docker attach <container-name-or-id>
-
Use the docker volume option and bind it to your
.e3
directory. E.g. as followsdocker run -v C:\Users\user\.e3:/root/.e3 -it rodenhausen/e3-docker-image
-
Configure a git repository and use the commands
git push
andgit pull
to store the state between docker runs
-
- To maintain the e3 state between docker runs you can:
-
For informations on how to use e3, euler2 or euler2-demos please refer to their respective repositories