diff --git a/virtcontainers/container.go b/virtcontainers/container.go index 6f6e160fa4..c890de9afb 100644 --- a/virtcontainers/container.go +++ b/virtcontainers/container.go @@ -252,7 +252,7 @@ type ContainerConfig struct { Resources specs.LinuxResources // 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.