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 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 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?