Loop until the container is stopped.