class_docstr: Checks all functions of the DockerEnvironmentDriver
class_docstr_tok: ["Checks","all","functions","of","the","DockerEnvironmentDriver"]
code: def test_log_container(self):
      # TODO: Do a more comprehensive test, test out optional variables
      # TODO: Test out more commands at the system level
      log_filepath = os.path.join(
          self.docker_environment_driver.root, "test.log"
      )
      self.docker_environment_driver.build_image(
          self.image_name, self.dockerfile_path
      )
      _, container_id = self.docker_environment_driver.run_container(
          self.image_name, command=["sh", "-c", "echo yo"]
      )
      return_code, logs = self.docker_environment_driver.log_container(
          container_id, log_filepath
      )
      assert return_code == 0
      assert logs and os.path.exists(log_filepath)
  
      with open(log_filepath, "r") as f:
          assert f.readline() != ""
  
imports: from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import shutil
  import tempfile
  import platform
  import threading
  import sys
  import uuid
  import timeout_decorator
  from io import open
  from datmo.core.controller.environment.driver.dockerenv import DockerEnvironmentDriver
  from datmo.core.util.exceptions import EnvironmentInitFailed, EnvironmentConnectFailed, FileAlreadyExistsError, EnvironmentRequirementsCreateError, EnvironmentImageNotFound, EnvironmentContainerNotFound, PathDoesNotExist, EnvironmentDoesNotExist, EnvironmentExecutionError
  from datmo.core.util.misc_functions import check_docker_inactive, pytest_docker_environment_failed_instantiation
label_desc: Use image node_id 34 for calling the TestDockerEnv obj's underlying member method code with example usage: obj.test_log_container() without return types