Docker
/Beginner
docker restart
Definition
A convenience CLI command that stops a running container and immediately starts it back up again in one fluid motion.
Explain Like I'm New
Turning it off and back on again.
Real World Example
You changed a configuration file inside a running Apache container. Apache needs to reboot to read the new file. You type `docker restart apache-web`, and the container reboots instantly.
Common Use Cases
- •Applying configuration changes
- •Recovering crashed apps
Interview Questions
basic
- Is `docker restart` the exact same thing as running `docker stop` followed by `docker start`?