Merge pull request #2257 from devimc/topic/virtcontainers/honourDontSaveSpec

virtcontainers: honour ContainerConfig struct comment and don't save OCI spec
This commit is contained in:
Peng Tao 2019-11-25 20:41:35 +08:00 committed by GitHub
commit 35d4cac999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ type ContainerConfig struct {
Resources specs.LinuxResources Resources specs.LinuxResources
// Raw OCI specification, it won't be saved to disk. // Raw OCI specification, it won't be saved to disk.
Spec *specs.Spec `json:"_"` Spec *specs.Spec `json:"-"`
} }
// valid checks that the container configuration is valid. // valid checks that the container configuration is valid.