Skip to content

Your utility doesn't correctly recognize the CPU limit (NanoCpus) #510

@melroy89

Description

@melroy89

Hallå,

I set resources CPU and memory limits using Docker compose (v3) under Linux:

deploy:
  resources:
    limits:
      cpus: '1.5'
      memory: 400M

Docker bench security however still gives me the following errors for this Docker container:

Container running without CPU restrictions: <container>

The docker inspect <container> command also correctly displays the limit meaning my settings are correctly applied to this Docker container, like so:

{
     "Id": "....",
     "HostConfig": {
          "Memory": 419430400,
          "NanoCpus": 1500000000,
     }
}

Meaning that your Docker Bench Security still report issues on the CPU limit, while there are actually solved!

How is that possible?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions