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