<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stop(self):
 """Stop the Docker container"""

        if self.container_id is None:
            raise Exception('No Docker Selenium container was running')
        check_call(['docker', 'stop', self.container_id])
        self.container_id = None