Docker: Run a Container Indefinitely
Sometimes, using Docker is a convenient way to build or test our applications that must be run on a Linux environment from Windows. These are many ways to run a container forever, including the tail
, sleep
, ping
, for...
and while...
loops. In this post, I will mainly focus on the second example, with a trick to quickly shut down and delete the container.