Unless you manually turn containers off or the system runs out of disk space they will just keep running. If you are using the popular linuxserver.io containers a periodic reboot of the pi will result in updates to the containers being pulled from their repo.