@@ -87,24 +87,59 @@ type ImageHistoryItem struct {
87
87
}
88
88
89
89
type ConfigObject struct {
90
- Env []string `json:"Env"`
91
- Entrypoint []string `json:"Entrypoint"`
90
+ Hostname string
91
+ Domainname string
92
+ User string
93
+ AttachStdin bool
94
+ AttachStdout bool
95
+ AttachStderr bool
92
96
ExposedPorts map [string ]struct {} `json:"ExposedPorts"`
93
- Cmd []string `json:"Cmd"`
94
- Volumes map [string ]struct {} `json:"Volumes"`
95
- Workdir string `json:"WorkingDir"`
96
- Labels map [string ]string `json:"Labels"`
97
+ Tty bool
98
+ OpenStdin bool
99
+ StdinOnce bool
100
+ Env []string `json:"Env"`
101
+ Cmd []string `json:"Cmd"`
102
+ // Healthcheck *HealthConfig
103
+ ArgsEscaped bool `json:",omitempty"`
104
+ Image string
105
+ Volumes map [string ]struct {} `json:"Volumes"`
106
+ Workdir string `json:"WorkingDir"`
107
+ Entrypoint []string `json:"Entrypoint"`
108
+ NetworkDisabled bool `json:",omitempty"`
109
+ MacAddress string `json:",omitempty"`
110
+ OnBuild []string
111
+ Labels map [string ]string `json:"Labels"`
112
+ StopSignal string `json:",omitempty"`
113
+ StopTimeout * int `json:",omitempty"`
114
+ Shell []string `json:",omitempty"`
97
115
}
98
116
99
117
func (c ConfigObject ) AsList () []string {
100
118
return []string {
101
- fmt .Sprintf ("Env: %s" , strings .Join (c .Env , "," )),
102
- fmt .Sprintf ("Entrypoint: %s" , strings .Join (c .Entrypoint , "," )),
119
+ fmt .Sprintf ("Hostname: %s" , c .Hostname ),
120
+ fmt .Sprintf ("Domainname: %s" , c .Domainname ),
121
+ fmt .Sprintf ("User: %s" , c .User ),
122
+ fmt .Sprintf ("AttachStdin: %t" , c .AttachStdin ),
123
+ fmt .Sprintf ("AttachStdout: %t" , c .AttachStdout ),
124
+ fmt .Sprintf ("AttachStderr: %t" , c .AttachStderr ),
103
125
fmt .Sprintf ("ExposedPorts: %v" , sortMap (c .ExposedPorts )),
126
+ fmt .Sprintf ("Tty: %t" , c .Tty ),
127
+ fmt .Sprintf ("OpenStdin: %t" , c .OpenStdin ),
128
+ fmt .Sprintf ("StdinOnce: %t" , c .StdinOnce ),
129
+ fmt .Sprintf ("Env: %s" , strings .Join (c .Env , "," )),
104
130
fmt .Sprintf ("Cmd: %s" , strings .Join (c .Cmd , "," )),
131
+ fmt .Sprintf ("ArgsEscaped: %t" , c .ArgsEscaped ),
132
+ fmt .Sprintf ("Image: %s" , c .Image ),
105
133
fmt .Sprintf ("Volumes: %v" , sortMap (c .Volumes )),
106
134
fmt .Sprintf ("Workdir: %s" , c .Workdir ),
135
+ fmt .Sprintf ("Entrypoint: %s" , strings .Join (c .Entrypoint , "," )),
136
+ fmt .Sprintf ("NetworkDisabled: %t" , c .NetworkDisabled ),
137
+ fmt .Sprintf ("MacAddress: %s" , c .MacAddress ),
138
+ fmt .Sprintf ("OnBuild: %s" , strings .Join (c .OnBuild , "," )),
107
139
fmt .Sprintf ("Labels: %v" , c .Labels ),
140
+ fmt .Sprintf ("StopSignal: %s" , c .StopSignal ),
141
+ fmt .Sprintf ("StopTimeout: %d" , c .StopTimeout ),
142
+ fmt .Sprintf ("Shell: %s" , strings .Join (c .Shell , "," )),
108
143
}
109
144
}
110
145
0 commit comments