@@ -274,24 +274,39 @@ type ContainerJSON struct {
274274 Config * runconfig.Config
275275}
276276
277- // ContainerJSONPre120 is a backcompatibility struct along with ContainerConfig.
277+ // ContainerJSON120 is a backcompatibility struct along with ContainerConfig120.
278+ type ContainerJSON120 struct {
279+ * ContainerJSONBase
280+ Mounts []MountPoint
281+ Config * ContainerConfig120
282+ }
283+
284+ // ContainerJSONPre120 is a backcompatibility struct along with ContainerConfigPre120.
278285// Note this is not used by the Windows daemon.
279286type ContainerJSONPre120 struct {
280287 * ContainerJSONBase
281288 Volumes map [string ]string
282289 VolumesRW map [string ]bool
283- Config * ContainerConfig
290+ Config * ContainerConfigPre120
284291}
285292
286- // ContainerConfig is a backcompatibility struct used in ContainerJSONPre120
287- type ContainerConfig struct {
293+ // ContainerConfigPre120 is a backcompatibility struct used in ContainerJSONPre120
294+ type ContainerConfigPre120 struct {
288295 * runconfig.Config
289296
290297 // backward compatibility, they now live in HostConfig
291- Memory int64
292- MemorySwap int64
293- CPUShares int64 `json:"CpuShares"`
294- CPUSet string `json:"CpuSet"`
298+ VolumeDriver string
299+ Memory int64
300+ MemorySwap int64
301+ CPUShares int64 `json:"CpuShares"`
302+ CPUSet string `json:"CpuSet"`
303+ }
304+
305+ // ContainerConfig120 is a backcompatibility struct used in ContainerJSON120
306+ type ContainerConfig120 struct {
307+ * runconfig.Config
308+ // backward compatibility, it lives now in HostConfig
309+ VolumeDriver string
295310}
296311
297312// MountPoint represents a mount point configuration inside the container.
0 commit comments