Extract method for running a single container