# Path: courseraresearchexports/containers/client.py
# def list_all(docker_client):
# def start(container_name, docker_client):
# def stop(container_name, docker_client):
# def remove(container_name, docker_client):
# def initialize(container_name, docker_client):
# def create_from_folder(export_data_folder, docker_client,
#                        container_name='coursera-exports',
#                        database_name='coursera-exports'):
# def create_postgres_container(docker_client, container_name, database_name,
#                               create_container_args):
# def create_from_export_request_id(export_request_id, docker_client,
#                                   container_name=None, database_name=None):
# 
# Path: courseraresearchexports/containers/utils.py
# def extract_zip_archive(archive, dest, delete_archive=True):
# def create_tar_archive(str, name='init-user-db.sh'):
# def get_next_available_port(containers_info):
# def is_container_running(container_name, docker_client):
# def docker_client_arg_parser():
# def docker_client(docker_url=None, timeout=60):


import logging
from tabulate import tabulate
from courseraresearchexports.containers import client
from courseraresearchexports.containers import utils
                container_info.status,
                container_info.host_ip,
                container_info.host_port
            ])

        print(tabulate(containers_info_table, headers='firstrow'))


def start_container(args):
    """
    Start a docker container.
    """
    d = utils.docker_client(args.docker_url, args.timeout)
    client.start(args.container_name, docker_client=d)


def stop_container(args):
    """
    Stop a docker container.
    """
    d = utils.docker_client(args.docker_url, args.timeout)
    client.stop(args.container_name, docker_client=d)


def remove_container(args):
    """
    Remove a docker container, stop the container
    before removing.
    """
    d = utils.docker_client(args.docker_url, args.timeout)

# Path: courseraresearchexports/containers/client.py
# def list_all(docker_client):
# def start(container_name, docker_client):
# def stop(container_name, docker_client):
# def remove(container_name, docker_client):
# def initialize(container_name, docker_client):
# def create_from_folder(export_data_folder, docker_client,
#                        container_name='coursera-exports',
#                        database_name='coursera-exports'):
# def create_postgres_container(docker_client, container_name, database_name,
#                               create_container_args):
# def create_from_export_request_id(export_request_id, docker_client,
#                                   container_name=None, database_name=None):
# 
# Path: courseraresearchexports/containers/utils.py
# def extract_zip_archive(archive, dest, delete_archive=True):
# def create_tar_archive(str, name='init-user-db.sh'):
# def get_next_available_port(containers_info):
# def is_container_running(container_name, docker_client):
# def docker_client_arg_parser():
# def docker_client(docker_url=None, timeout=60):


# Path: courseraresearchexports/commands/containers.py
import logging
from tabulate import tabulate
from courseraresearchexports.containers import client
from courseraresearchexports.containers import utils

                container_info.status,
                container_info.host_ip,
                container_info.host_port
            ])

        print(tabulate(containers_info_table, headers='firstrow'))


def start_container(args):
    """
    Start a docker container.
    """
    d = utils.docker_client(args.docker_url, args.timeout)
    client.start(args.container_name, docker_client=d)


def stop_container(args):
    """
    Stop a docker container.
    """
    d = utils.docker_client(args.docker_url, args.timeout)
    client.stop(args.container_name, docker_client=d)


def remove_container(args):
    """
    Remove a docker container, stop the container
    before removing.
    """
    d = utils.docker_client(args.docker_url, args.timeout)

    client.remove(args.container_name, docker_client=d)