Skip to content

Commit d768941

Browse files
committed
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>
1 parent edc51c8 commit d768941

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

metadata/containers.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ func (s *containerStore) Update(ctx context.Context, container containers.Contai
164164
updated.Labels = container.Labels
165165
case "image":
166166
updated.Image = container.Image
167-
case "runtime":
168-
// TODO(stevvooe): Should this actually be allowed?
169-
updated.Runtime = container.Runtime
170167
case "spec":
171168
updated.Spec = container.Spec
172169
case "rootfs":

0 commit comments

Comments
 (0)