Reputation: 857
I plan to start a separate container (via compose) which configures my mongodb replica set. After configuration (via entrypoint sh script) the container is not needed anymore. Whats the best way to kill/stop him from shell?
Upvotes: 1
Views: 1415
Reputation: 2685
Whatever is launched first by the entrypoint command will be PID 1 in the Container. When PID 1 exits/stops, the Container will stop.
Good luck.
Upvotes: 2