def start_docker(self, image_name, command):
        logger.warning("Pulling Docker image. This may take a minute.")
        for line in self._docker_client.pull(image_name, stream=True):
            logger.debug(line)

        host_config = docker.utils.create_host_config(
            binds={self._temp_dir: {"bind": self._temp_dir, "mode": "rw"}},
            port_bindings={
                80: ("127.0.0.1", self.http_port),
                443: ("127.0.0.1", self.https_port)},)
        container = self._docker_client.create_container(
            image_name, command, ports=[80, 443], volumes=self._temp_dir,
            host_config=host_config)
        if container["Warnings"]:
            logger.warning(container["Warnings"])
        self._container_id = container["Id"]
        self._docker_client.start(self._container_id)
Remove Barbican ACLs setting defined for a secret or container
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-compatibility-test/certbot_compatibility_test/configurators/common.py/Proxy.start_docker--crossover with--dataset/ETHPy150Open openstack/python-barbicanclient/barbicanclient/acls.py/ACL.remove