Fix Config.Cpuset from API < 1.20

Signed-off-by: Antonio Murdaca <amurdaca@redhat.com>
This commit is contained in:
Antonio Murdaca
2015-10-13 09:09:05 +02:00
parent b0cbc02283
commit 8c63ce4f6b
4 changed files with 42 additions and 3 deletions
+1 -1
View File
@@ -24,5 +24,5 @@ type ContainerConfig struct {
Memory int64
MemorySwap int64
CPUShares int64 `json:"CpuShares"`
CPUSet string `json:"CpuSet"`
CPUSet string `json:"Cpuset"`
}
+2 -1
View File
@@ -16,7 +16,8 @@ type ContainerJSON struct {
// ContainerConfig is a backcompatibility struct used in ContainerJSON for the API 1.20
type ContainerConfig struct {
*runconfig.Config
// backward compatibility, it lives now in HostConfig
// backward compatibility, they now live in HostConfig
VolumeDriver string
}