Skip to content

docker-compose.yml don't work #101

Open

Description

@Othman-Benbrahim

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

Activity

  1. alecslupu commented on Feb 5, 2023

    @alecslupu
    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
    
  2. Othman-Benbrahim commented on Feb 5, 2023

    @Othman-Benbrahim
    Author

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

  3. alecslupu commented on Feb 5, 2023

    @alecslupu
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions