':param id: Container id.
:type id: ``str``
:param name: The name of the container.
:type  name: ``str``
:param image: The image this container was deployed using.
:type  image: :class:`.ContainerImage`
:param state: The state of the container, e.g. running
:type  state: :class:`libcloud.container.types.ContainerState`
:param ip_addresses: A list of IP addresses for this container
:type  ip_addresses: ``list`` of ``str``
:param driver: ContainerDriver instance.
:type driver: :class:`.ContainerDriver`
:param extra: (optional) Extra attributes (driver specific).
:type extra: ``dict``'

def __init__(self, id, name, image, state, ip_addresses, driver, extra=None):

    self.id = (str(id) if id else None)
    self.name = name
    self.image = image
    self.state = state
    self.ip_addresses = ip_addresses
    self.driver = driver
    self.extra = (extra or {})
