Merge pull request #2537 from crosbymichael/mutable

Image and snapshot key are mutable
This commit is contained in:
Phil Estes 2018-08-09 11:21:47 -04:00 committed by GitHub
commit 65839a47a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ type Container struct {
// Image specifies the image reference used for a container. // Image specifies the image reference used for a container.
// //
// This property is optional but immutable. // This property is optional and mutable.
Image string Image string
// Runtime specifies which runtime should be used when launching container // Runtime specifies which runtime should be used when launching container
@ -60,7 +60,7 @@ type Container struct {
// look up the mounts from the snapshot service and include those on the // look up the mounts from the snapshot service and include those on the
// task create request. // task create request.
// //
// This field is not required but immutable. // This field is not required but mutable.
SnapshotKey string SnapshotKey string
// Snapshotter specifies the snapshotter name used for rootfs // Snapshotter specifies the snapshotter name used for rootfs