First time here? Checkout the FAQ!
x
0 votes
by (3.4k points)

I ran into an issue while trying to use the opencarp-docker script on Windows.

My configuration:

Windows 10, Docker with WSL 2 backend, using as a shell "Git Bash" from Git for Windows

I followed the instructions in INSTALL.md (option 2), i.e. executed (for simplicity, I use here the current working directory as installation path):

git clone https://git.opencarp.org/openCARP/openCARP.git

cd openCARP/docker

./install_script.sh .

./opencarp-docker pull

The issue happened then, when trying to run bench:

./opencarp-docker bench

I've got the following error:

docker: Error response from daemon: the working directory 'C:/Users/me/AppData/Local/Programs/Git/shared' is invalid, it needs to be an absolute path.
See 'docker run --help'.

1 Answer

0 votes
by (3.4k points)
 
Best answer

I found a solution on this page: https://github.com/docker/cli/issues/2204

It is due to the use of Git Bash, in particular Mingw/msys2 doing automatic path conversion.

In order to fix it, run the following command:

 export MSYS_NO_PATHCONV=1

You should now be able to run bench.

Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], config: ["MMLorHTML.js"], jax: ["input/TeX"], processEscapes: true } }); MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } } });
...