def _start_container_for_introspection(self, **kwargs):
        application_name = random_name(self)
        docker_client = DockerClient()
        self.addCleanup(docker_client.remove, application_name)

        deployer = ApplicationNodeDeployer(
            u"localhost", docker_client,
            make_memory_network(), node_uuid=uuid4())

        application = Application(
            name=application_name,
            image=DockerImage.from_string(u"busybox"),
            **kwargs)
        desired_configuration = Deployment(nodes=[
            Node(uuid=deployer.node_uuid,
                 applications=[application])])
        d = change_node_state(deployer, desired_configuration)
        d.addCallback(lambda _: deployer.discover_state(
            DeploymentState(nodes={
                NodeState(hostname=deployer.hostname, uuid=deployer.node_uuid,
                          applications=[],
                          manifestations={}, paths={}, devices={}),
            }),
            persistent_state=PersistentState(),
        ))
        return d
Configure and deploy a busybox container with the given options.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/functional/test_deploy.py/DeployerTests._start_container_for_introspection