def start_container(container)
      overlay_cidr = container.overlay_cidr

      if overlay_cidr
        wait_weave_running?
        register_container_dns(container) if container.service_container?
        attach_overlay(container)
      else
        debug "skip start for container=#{container.name} without overlay_cidr"
      end
    rescue Docker::Error::NotFoundError
      debug "skip start for missing container=#{container.id}"

    rescue => exc
      error "failed to start container: #{exc.class.name}: #{exc.message}"
      error exc.backtrace.join("\n")
    end
def start_container(container)
      overlay_cidr = container.overlay_cidr

      if overlay_cidr
        wait_weave_running?
        register_container_dns(container) if container.service_container?
        attach_overlay(container)
      else
        debug "skip start for container=#{container.name} without overlay_cidr"
      end
    rescue Docker::Error::NotFoundError
      debug "skip start for missing container=#{container.id}"

    rescue => exc
      error "failed to start container: #{exc.class.name}: #{exc.message}"
      error exc.backtrace.join("\n")
    end
Ensure weave network for container

 @param [Docker::Container] container