Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose.yml don't work #101

Open
Othman-Benbrahim opened this issue Feb 5, 2023 · 3 comments
Open

docker-compose.yml don't work #101

Othman-Benbrahim opened this issue Feb 5, 2023 · 3 comments

Comments

@Othman-Benbrahim
Copy link

I would like to create a docker image of DECIDIM with docker compose, but when I install it on docker, it gives me the following error:

" Error invoking
remote method 'docker-start-container': Error: (HTTP code 400)
unexpected - failed to create shim task: OCI runtime create failed: runc
create failed: unable to start container process: exec:
"/code/vendor/hello-world.sh": stat /code/vendor/hello-world.sh: no such
file or directory: unknown"

As you are the user of this application, I ask you directly, how to solve it.

https://github.com/decidim/docker/blob/master/docker-compose.yml

@alecslupu
Copy link
Contributor

The error you are facing is windows related.

Try to run the following set of commands in a CMD terminal to configure git on your windows:

git config --global core.fileMode false
git config --global core.autocrlf true

After that :

git clone https://github.com/decidim/docker.git
find ./docker -type f -print0 | xargs -0 -n 1 -P 4 dos2unix

After that, everything should be okay, so you could run:

cd docker 
docker compose up

@Othman-Benbrahim
Copy link
Author

It's don't working, because xargs it's don't recognise by command prompt of windows.

@alecslupu
Copy link
Contributor

The issue seems to be the fact that you are running on windows. Try to run using WSL in the path where the repo has been cloned into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants