mirror of
https://github.com/moby/moby.git
synced 2026-06-24 08:48:23 +00:00
ContainerUpdate only starts applying per-device blkio settings in the current API version. The fields existed in the Go request type before that because it shares `container.Resources` with other endpoints, but they were not documented as supported for container update and older daemons ignored them. Clear these fields when handling requests for older API versions so clients pinned to those versions keep the previous behavior, while v1.55 clients can use the newly supported fields. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>