'Create a container listening on port 8080.
:return: ``Deferred`` firing with a container dictionary once the
container is up and running.'

def _create_container(self, cluster, script):

    d = create_python_container(self, cluster, {u'ports': [{u'internal': 8080, u'external': 8080}], u'node_uuid': cluster.nodes[0].uuid}, script)
    def check_result(response):
        dl = verify_socket(cluster.nodes[0].public_address, 8080)
        dl.addCallback((lambda _: response))
        return dl
    d.addCallback(check_result)
    return d
