container: make the runOnNodes method runOnNodes more generic

Not all methods will return a container or an error. WaitContainer is an
example, and it's coming next.
container: add WaitContainer method