exec /code/docker-entrypoint.sh: no such file or directory
Opened this issue · 1 comments
edmond-tcap commented
When I try out this demo with docker and run
docker compose run app /venv/bin/python manage.py migrate
exec /code/docker-entrypoint.sh: no such file or directory
shows up in terminal.
I checked inside the docker image docker run -it --entrypoint /bin/bash bakerydemo-app
, the docker-entrypoint.sh is inside. I also added the line RUN chmod +x /code/docker-entrypoint.sh
in Dockerfile but it did nothing. Redis and Postgres seemed to work in real-time logs.
edmond-tcap commented
I solved it myself.
It seems that in Dockerfile ENTRYPOINT ["/code/docker-entrypoint.sh"]
line does not work. It can instead be CMD ["/bin/sh", "-c", "/code/docker-entrypoint.sh"]
.