on-internet
← Community

View Docker entrypoint output

Stack Overflow ·

I'm configuring an entrypoint to be executed after the container is started: COPY entrypoint.sh /entrypoint.sh RUN ["chmod", "+x", "/entrypoint.sh"] ENTRYPOINT exec /entrypoint.sh However, I'm not able to see the output of entrypoint.sh execution when issuing docker-compose up. The only output is: service exited with code 2 The container is killed so I cannot do docker logs <container_id>. I've tried with the docker events command but I don't see any logs related to entrypoint.sh. I know the entrypoint file has an error, but I'd like to see the output of the execution. Any ideas?

Comments

Sign in or sign up to comment and upvote.

No comments yet.