metadata: disallow changing the runtime of an existing container
This could render tasks for a container unresolvalbe. If there is a use case for changing the runtime of a container, we should think it through carefully. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
edc51c86f2
commit
d7689418ed
@ -164,9 +164,6 @@ func (s *containerStore) Update(ctx context.Context, container containers.Contai
|
||||
updated.Labels = container.Labels
|
||||
case "image":
|
||||
updated.Image = container.Image
|
||||
case "runtime":
|
||||
// TODO(stevvooe): Should this actually be allowed?
|
||||
updated.Runtime = container.Runtime
|
||||
case "spec":
|
||||
updated.Spec = container.Spec
|
||||
case "rootfs":
|
||||
|
Loading…
Reference in New Issue
Block a user