func (c *Cluster) CreateContainerSchedulerOpts(opts docker.CreateContainerOptions, schedulerOpts SchedulerOptions, inactivityTimeout time.Duration, nodes ...string) (string, *docker.Container, error) {
	return c.CreateContainerPullOptsSchedulerOpts(opts, docker.PullImageOptions{
		Repository:        opts.Config.Image,
		InactivityTimeout: inactivityTimeout,
		Context:           opts.Context,
	}, docker.AuthConfiguration{}, schedulerOpts, nodes...)
}
Similar to CreateContainer but allows arbritary options to be passed to
the scheduler.
package cluster
import (
	"errors"
	"fmt"
	"math/rand"
	"net"
	"net/url"
	"sync"
	"time"
	"github.com/fsouza/go-dockerclient"
	"github.com/tsuru/docker-cluster/log"
)
type Container struct {
	Id   string `bson:"_id"`
	Host string
}
func (c *Cluster) CreateContainer(opts docker.CreateContainerOptions, inactivityTimeout time.Duration, nodes ...string) (string, *docker.Container, error) {
	return c.CreateContainerSchedulerOpts(opts, nil, inactivityTimeout, nodes...)
}