Make that container restart itself
1 min readApr 4, 2019
After a reboot it is often a scramble to fire up your development environment, but some services like your database running in Docker could just restart itself.
You can docker update
a stopped (or running) container without recreating it and possibly losing data. To make a container always restart, simply
docker update --restart always my-postgresql
Now you can start the container for the last time!