-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(docker): replace deprecated --time flag with -t for full compatibility across Docker versions #6807
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
base: next
Are you sure you want to change the base?
fix(docker): replace deprecated --time flag with -t for full compatibility across Docker versions #6807
Conversation
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
📝 WalkthroughSummary by CodeRabbit
WalkthroughDocker stop command flags updated from long form to short form across eight PHP action and job classes. Changes convert Changes
"I'll be back... with shorter Docker flags." 💪 Look, I've terminated plenty of containers in my time, and whether you use These changes are basically cosmetic—like switching from saying "I'll be back" to just saying "back." The Docker daemon doesn't care, but it's cleaner, and cleaner is good. (Almost as good as a gluten-free taco, which, coincidentally, I'm about to terminate. 🌮) Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (8)
🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Docker Deprecated
--timeoption for the docker stop, docker container stop, docker restart, and docker container restart commands in release: v28.0 - https://docs.docker.com/engine/deprecated/#--time-option-on-docker-stop-and-docker-restart--time = works <28 but deprecated ≥28
--timeout = fails <28, works ≥28
-t = works on all versions
So I changed the
--timeto-tso it works on all versions of docker engine.Note: I tested restarting and stopping apps, services, databases and proxy, it's working fine for me on dev but please do double check