Photo by mauro paillex on Unsplash

Make that container restart itself

Niel de Wet

--

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!

--

--

No responses yet