Git Product home page Git Product logo

Comments (3)

schmunk42 avatar schmunk42 commented on May 23, 2024 2

Hmm, are you on Windows?

Something like this, maybe? ... https://help.github.com/en/articles/configuring-git-to-handle-line-endings#platform-windows

from yii2-docker.

hypotheses avatar hypotheses commented on May 23, 2024

I had a similar problem and landed here from a Google search.

In my case, I used Github Desktop to pull the repository to my computer running Windows10 with Insider Program to set up wsl2 subsystem for Ubuntu18.04. This seems like the recommended set up to run the new Docker Desktop with wsl2 support.

At first, running docker-compose up -d complete the build of all related containers without any problem. However, the web service running apache kept restarting.

The log file showed this same error /usr/bin/env bash\r: No such file or directory.

I tried changing /usr/bin/env bash to /bin/bash but this caused more complications with pecl install xdebug giving an error that "xdebug verion 2.9.4 does not have REST dependency information available".

My final working solution was deleting the repository downloaded via Github desktop for windows.
Get the repository with git clone via Ubuntu Subsystem instead.

One more step that I had to do was deleting all the previously build container images. Continue building with docker-compose up -d from the previously failed pecl install xdebug still resulted in the same error message.

After rebuilding everything again from scratch, all the services now work properly.

from yii2-docker.

schmunk42 avatar schmunk42 commented on May 23, 2024

Thank you @hypotheses
It looks like it's not a specific issue for yii2-docker, so closing.

from yii2-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.