Docker compose & docker-entrypoint

\”./docker-entrypoint.sh\”: permission denied”: unknown

I would guess your docker-entrypoint.sh doesn’t have execute permissions (x). But also docker-compose.yml is not really the best place for the docker-entrypoint.sh. It’s the override setting, see entrypoint. The default should go in the Dockerfile. Try this:

Add this to the end of your Dockerfile

COPY ./docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]

The docker-entrypoint.sh should be in the same folder as the Dockerfile (or adjust the COPY path). Remove the entrypoint line from your docker-compose.yml. Rebuild, rerun.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)