github.com/vieux/docker@v0.6.3-0.20161004191708-e097c2a938c7/api/types/swarm/container.go (about)

     1  package swarm
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/docker/docker/api/types/mount"
     7  )
     8  
     9  // ContainerSpec represents the spec of a container.
    10  type ContainerSpec struct {
    11  	Image           string            `json:",omitempty"`
    12  	Labels          map[string]string `json:",omitempty"`
    13  	Command         []string          `json:",omitempty"`
    14  	Args            []string          `json:",omitempty"`
    15  	Env             []string          `json:",omitempty"`
    16  	Dir             string            `json:",omitempty"`
    17  	User            string            `json:",omitempty"`
    18  	Groups          []string          `json:",omitempty"`
    19  	TTY             bool              `json:",omitempty"`
    20  	Mounts          []mount.Mount     `json:",omitempty"`
    21  	StopGracePeriod *time.Duration    `json:",omitempty"`
    22  }