diff --git a/commands/deploy.go b/commands/deploy.go index e08a0f0..739cbe2 100644 --- a/commands/deploy.go +++ b/commands/deploy.go @@ -127,7 +127,7 @@ func generateDeployOpts(data []byte, pod, node, entry, image, network string, cp Healcheck: healthCheck, Hook: hook, RestartPolicy: entrypoint.RestartPolicy, - ExtraHosts: entrypoint.ExtraHosts, + ExtraHosts: specs.ExtraHosts, }, Podname: pod, Nodename: node, diff --git a/types/specs.go b/types/specs.go index 7fa65be..9eef2f0 100644 --- a/types/specs.go +++ b/types/specs.go @@ -12,6 +12,7 @@ type Specs struct { Volumes []string `yaml:"volumes,omitempty,flow"` Meta map[string]string `yaml:"meta,omitempty,flow"` DNS []string `yaml:"dns,omitempty,flow"` + ExtraHosts []string `yaml:"dns,omitempty,flow"` } type Container struct {