1

Is there any way to re-execute the entrypoint script when a docker container/service restarts after failure?

I am deploying using docker stack deploy -c docker-compose.yaml abcstack.

This compose file contains multiple services.

QO23
  • 143
  • 1
  • 8

1 Answers1

1

ENTRYPOINT and CMD, when added to the dockerfile, are always executed when a container is starting.

George Aristy
  • 1,373
  • 15
  • 17
  • My best understanding is that in dev the ENTRYPOINT is not executed by visual studio. Instead it runs the commands externally on the container to optimize start time for debug. Because of this these commands don't get run a second time. I may be wrong, but euther way ENTRYPOINT is not working for me – Andrey Nov 30 '19 at 01:25