-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix docker stop after 10s #226
base: master
Are you sure you want to change the base?
Conversation
I don't mind. What does it gain us? |
Securely exit the program and save time. |
I guess. Make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Work for me.
Without PR
❯ docker compose exec mysql-backup bash
87ebbd66780c:/$ ps
PID USER TIME COMMAND
1 appuser 0:00 {entrypoint} /bin/bash /entrypoint
9 appuser 0:00 sleep 60
10 appuser 0:00 bash
16 appuser 0:00 ps
87ebbd66780c:/$
exit
~/Repositories/Kadiska/mysql-backup on master
❯ docker compose restart
[+] Restarting 3/3
✔ Container mysql-backup-mysql-1 Started 2.1s
✔ Container mysql-backup-wordpress-1 Started 1.5s
✔ Container mysql-backup-mysql-backup-1 Started 10.4s
Container mysql-backup-mysql-backup-1 Started 10.4s
With PR
❯ docker compose exec mysql-backup bash
a2cd172bfea6:/$ ps
PID USER TIME COMMAND
1 appuser 0:00 /usr/bin/dumb-init -- /entrypoint
7 appuser 0:00 {entrypoint} /bin/bash /entrypoint
22 appuser 0:00 sleep 86400
29 appuser 0:00 bash
35 appuser 0:00 ps
a2cd172bfea6:/$
exit
~/mysql-backup on master !1 ?1
❯ docker compose restart
[+] Restarting 3/3
✔ Container mysql-backup-mysql-backup-1 Started 0.4s
✔ Container mysql-backup-wordpress-1 Started 1.6s
✔ Container mysql-backup-mysql-1 Started 1.8s
Container mysql-backup-mysql-backup-1 Started 0.4s
Looks fine to me. Awaiting a rebase and fixing the ENTRYPOINT/CMD |
About dumb-init
|
No description provided.