Skip to content

feat: add blkio device options to docker container update#7031

Open
acouvreur wants to merge 2 commits into
docker:masterfrom
acouvreur:container-update-blkio-device-throttle
Open

feat: add blkio device options to docker container update#7031
acouvreur wants to merge 2 commits into
docker:masterfrom
acouvreur:container-update-blkio-device-throttle

Conversation

@acouvreur
Copy link
Copy Markdown
Contributor

Closes #3325

Related to moby/moby#52651

- What I did

Add 5 options to docker container update to control the device blkio throttle.

- How I did it

I simply added the same options from the create command to the update command to be able to pass the blkio device arguments for the update.

- How to verify it

The current version of the moby/moby library does not forward those arguments even though they exist in the struct.

You need to set the moby/moby version to the one in moby/moby#52651 and then create a docker container with a certain blkio device throttle configuration and then update it using docker container update. Then you can inspect the container for those new values.

- Human readable description for the release notes

docker container update can now update the blkio device weights/IOPs

- A picture of a cute animal (not mandatory but encouraged)

Closes docker#3325

Related to moby/moby#52651

Signed-off-by: Alexis Couvreur <alexiscouvreur.pro@gmail.com>
@acouvreur acouvreur force-pushed the container-update-blkio-device-throttle branch 2 times, most recently from 11ba624 to 1c145a3 Compare June 6, 2026 18:46
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli/command/container/update.go 0.00% 23 Missing ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: Alexis Couvreur <alexiscouvreur.pro@gmail.com>
@acouvreur acouvreur requested review from a team and thaJeztah as code owners June 6, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Support All Blkio Throttles Available in Engine API

2 participants