|
@@ -474,10 +474,8 @@ func (s *containerRouter) postContainersCreate(ctx context.Context, w http.Respo
|
|
|
}
|
|
|
// Ignore KernelMemoryTCP because it was added in API 1.40.
|
|
|
hostConfig.KernelMemoryTCP = 0
|
|
|
- }
|
|
|
|
|
|
- // Ignore Capabilities because it was added in API 1.40.
|
|
|
- if hostConfig != nil && versions.LessThan(version, "1.40") {
|
|
|
+ // Ignore Capabilities because it was added in API 1.40.
|
|
|
hostConfig.Capabilities = nil
|
|
|
}
|
|
|
|