GithubHelp home page GithubHelp logo

Comments (5)

mod64bits avatar mod64bits commented on June 23, 2024 4

I'm having a permission error on entrypoint.prod.sh
container process: exec: "/home/app/web/entrypoint.prod.sh": permission denied: unknown

from django-on-docker.

pisarik avatar pisarik commented on June 23, 2024 1

Looks that COPY . . is unnecessary at all, since the folder will be mounted anyway (i.e. volumes option in compose config)

from django-on-docker.

maxiller avatar maxiller commented on June 23, 2024

well, this does not work with bind mounts no matter what I tried. App container just does not go up.
Switching to named volume works, but is not quite what's expected, since every app code change would mean volume rebuild.

Struggling with this error:

Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/src/app/entrypoint.sh": stat /usr/src/app/entrypoint.sh: no such file or directory: unknown

MacOS, docker runs on lima.

from django-on-docker.

maxiller avatar maxiller commented on June 23, 2024

Well, it seems lima is causing this behaviour, eventually...
The daemon inside it executes instructions from compose file that order mounting a path, it executes it, but that path obviously does not exist in the lima's vm.
Going to try out some other alternative to docker desktop.

UPD: replaced the runtime with colima, and now it works fine.

from django-on-docker.

SaraFarron avatar SaraFarron commented on June 23, 2024

For those who get permission denied: unknown
change entrypoint.sh or entrypoint.prod.sh like

# copy entrypoint.sh
# COPY ./entrypoint.sh .

# copy project
COPY . .
RUN sed -i 's/\r$//g' /usr/src/app/entrypoint.sh
RUN chmod +x /usr/src/app/entrypoint.sh

so that file is copied and then permissions applied

from django-on-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.