From 56051b84b00fa6a2bda9775231d2209c76d39e03 Mon Sep 17 00:00:00 2001 From: Albin Kerouanton Date: Fri, 3 Feb 2023 11:39:40 +0100 Subject: [PATCH] Fix bad ThrottleDevice path Fixes moby/moby#44904. Signed-off-by: Albin Kerouanton --- opts/throttledevice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opts/throttledevice.go b/opts/throttledevice.go index 9fb788433b52..789acf60fc56 100644 --- a/opts/throttledevice.go +++ b/opts/throttledevice.go @@ -31,7 +31,7 @@ func ValidateThrottleBpsDevice(val string) (*blkiodev.ThrottleDevice, error) { } return &blkiodev.ThrottleDevice{ - Path: v, + Path: k, Rate: uint64(rate), }, nil }