'List the deployed container images
:param image: Filter to containers with a certain image
:type  image: :class:`libcloud.container.base.ContainerImage`
:param all: Show all container (including stopped ones)
:type  all: ``bool``
:rtype: ``list`` of :class:`libcloud.container.base.Container`'

def list_containers(self, image=None, all=True):

    if all:
        ex = '?all=1'
    else:
        ex = ''
    try:
        result = self.connection.request(('/v%s/containers/json%s' % (self.version, ex))).object
    except Exception as exc:
        errno = getattr(exc, 'errno', None)
        if (errno == 111):
            raise DockerException(errno, 'Make    sure    docker    host    is    accessibleand    the    API    port    is    correct')
        raise
    containers = [self._to_container(value) for value in result]
    return containers
